[Distutils] Extending distutils with a package in site-packages?
Tarek Ziadé
ziade.tarek at gmail.com
Wed Jan 21 23:54:52 CET 2009
On Wed, Jan 21, 2009 at 11:42 PM, Akira Kitada <akitada at gmail.com> wrote:
> Hi,
>
> I'm trying to write a module 'mydistutils', an extension to original distutils.
> I would like to make it distutils-compatible so that user of the
> module use mydistutils interchangeably.
> The only difference between them would be the addition of
> 'MyDistribution' and 'bdist_mycmd'.
> Because I don't want to mess up my python installation, It want to put
> all of those extension parts in site-packages/.
> But if I do that way, I cannot do "from mydistutils import core" or
> the like because mydistutils is in different package...
> Is there any pythonic tips for dealing this problem?
> I'd like to keep it simple, so setuptools-free solution would be preferable
Do you mean, how to distribute your distutils extension ?
if so, you have to create a package with its own setup.py, and use
full paths in your import directives.
Regards
Tarek
>
> Thanks,
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
--
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
More information about the Distutils-SIG
mailing list