programatically making eggs
Hi. What would be the best way of programatically making eggs as opposed to python setup.py bdist_egg sdist on the command line. Many thanks.
It looks like what I should be doing is subclassing Command from setuptools, then passing in user options. I'll be trying a few things out this way but any additional info would be helpful. Many thanks. Regards, David David Pratt wrote:
Hi. What would be the best way of programatically making eggs as opposed to python setup.py bdist_egg sdist on the command line. Many thanks. _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
On Fri, Apr 18, 2008 at 3:11 PM, David Pratt <fairwinds@eastlink.ca> wrote:
It looks like what I should be doing is subclassing Command from setuptools, then passing in user options. I'll be trying a few things out this way but any additional info would be helpful. Many thanks.
or you can use distutils.core.run_setup, which allows you to call setup() with your arguments, in a realistic way. in any case, it just consists of calling setup() with a sys.argv correctly filled That would be simpler imho instead of creating a new command Tarek
Regards, David
David Pratt wrote:
Hi. What would be the best way of programatically making eggs as opposed to python setup.py bdist_egg sdist on the command line. Many thanks. _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@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/
Your right, Tarek. This is much more sane. Many thanks for the advice. Regards, David Tarek Ziadé wrote:
On Fri, Apr 18, 2008 at 3:11 PM, David Pratt <fairwinds@eastlink.ca> wrote:
It looks like what I should be doing is subclassing Command from setuptools, then passing in user options. I'll be trying a few things out this way but any additional info would be helpful. Many thanks.
or you can use distutils.core.run_setup, which allows you to call setup() with your arguments, in a realistic way.
in any case, it just consists of calling setup() with a sys.argv correctly filled
That would be simpler imho instead of creating a new command
Tarek
Regards, David
David Pratt wrote:
Hi. What would be the best way of programatically making eggs as opposed to python setup.py bdist_egg sdist on the command line. Many thanks. _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
participants (2)
-
David Pratt -
Tarek Ziadé