Re: [Distutils] python setup.py develop and extras
On Mon, Nov 26, 2012 at 3:10 AM, Chris Withers wrote: > > On 23/11/2012 22:11, PJ Eby wrote: > >> If you're still looking for an answer, pretty much all you can do for >> that is: "setup.py develop easy_install pkgname[docs,testing]". You can >> shorten it by defining an generic alias for "develop easy_install" in >> your global or user distutils .cfg, or a project-specific alias for >> "develop easy_install pkgname" in the project's setup.cfg. >> > > This sounds like exactly what I'm after but the way you wrote your reply > suggests I might be missing something... > What are the snags with the above? What don't I get that I do with just a > straight "setup.py develop pkgname"? > You have that backwards: it's what you DO get with that, that you *don't* get with plain develop. Doing "develop easy_install pkg[extras]" will first install the package in develop mode, then install it *again*, hopefully as a no-op due to already being on sys.path, and finally install the extras. You could of course do easy_install first, *then* the develop, but that would require running setup.py twice. ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
Phil, On 23/11/2012 22:11, PJ Eby wrote: If you're still looking for an answer, pretty much all you can do for that is: "setup.py develop easy_install pkgname[docs,testing]". You can shorten it by defining an generic alias for "develop easy_install" in your global or user distutils .cfg, or a project-specific alias for "develop easy_install pkgname" in the project's setup.cfg. This sounds like exactly what I'm after but the way you wrote your reply suggests I might be missing something... What are the snags with the above? What don't I get that I do with just a straight "setup.py develop pkgname"? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
> If you want a one-liner try pip install -e . pyramid[docs,testing] > this works too: pip install -e .[docs,testing] (from inside the pyramid project dir) and the extras come from the local setup.py Marcus ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
On Fri, Nov 23, 2012 at 2:53 PM, Chris Withers wrote: > On 07/11/2012 18:36, Chris Withers wrote: > >> On 06/11/2012 12:23, Daniel Holth wrote: >> >>> On Nov 6, 2012, at 6:47 AM, Chris Withers wrote: >>> >>> On 05/11/2012 20:32, Daniel Holth wrote: > Extras are just an alias for a set of dependencies. After you run > setup.py develop on package, just "pip install package[docs,testing]" > it's pyramid, and I want to do setup.py develop [docs,testing] >>> >>> If you're still looking for an answer, pretty much all you can do for that is: "setup.py develop easy_install pkgname[docs,testing]". You can shorten it by defining an generic alias for "develop easy_install" in your global or user distutils .cfg, or a project-specific alias for "develop easy_install pkgname" in the project's setup.cfg. ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
On 2012-11-23 19:53:31 +, Chris Withers said: On 07/11/2012 18:36, Chris Withers wrote: On 06/11/2012 12:23, Daniel Holth wrote: On Nov 6, 2012, at 6:47 AM, Chris Withers wrote: On 05/11/2012 20:32, Daniel Holth wrote: Extras are just an alias for a set of dependencies. After you run setup.py develop on package, just "pip install package[docs,testing]" it's pyramid, and I want to do setup.py develop [docs,testing] It's no longer fashionable to have a project's build script reach out and install its own dependencies. If you want a one-liner try pip install -e . pyramid[docs,testing] Says who? What are we supposed to do instead now? Hmm, no answers then... That's because the original question is too vague to answer. Setuptools extras are defined here: - http://packages.python.org/distribute/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies What do you want the answer to be? (A serious question.) :-( Chris -- Alex Clark · https://www.gittip.com/aclark4life/ ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
On 06/11/2012 15:13, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/06/2012 06:47 AM, Chris Withers wrote: On 05/11/2012 20:32, Daniel Holth wrote: Extras are just an alias for a set of dependencies. After you run setup.py develop on package, just "pip install package[docs,testing]" it's pyramid, and I want to do setup.py develop [docs,testing] FWIW, we lost this argument a while back Who was the argument with and where? Smells rather brown to me... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
On 07/11/2012 18:36, Chris Withers wrote: On 06/11/2012 12:23, Daniel Holth wrote: On Nov 6, 2012, at 6:47 AM, Chris Withers wrote: On 05/11/2012 20:32, Daniel Holth wrote: Extras are just an alias for a set of dependencies. After you run setup.py develop on package, just "pip install package[docs,testing]" it's pyramid, and I want to do setup.py develop [docs,testing] It's no longer fashionable to have a project's build script reach out and install its own dependencies. If you want a one-liner try pip install -e . pyramid[docs,testing] Says who? What are we supposed to do instead now? Hmm, no answers then... :-( Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
On 06/11/2012 12:23, Daniel Holth wrote: On Nov 6, 2012, at 6:47 AM, Chris Withers wrote: On 05/11/2012 20:32, Daniel Holth wrote: Extras are just an alias for a set of dependencies. After you run setup.py develop on package, just "pip install package[docs,testing]" it's pyramid, and I want to do setup.py develop [docs,testing] It's no longer fashionable to have a project's build script reach out and install its own dependencies. If you want a one-liner try pip install -e . pyramid[docs,testing] Says who? What are we supposed to do instead now? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/06/2012 06:47 AM, Chris Withers wrote: > On 05/11/2012 20:32, Daniel Holth wrote: >> Extras are just an alias for a set of dependencies. After you run >> setup.py develop on package, just "pip install >> package[docs,testing]" > > it's pyramid, and I want to do setup.py develop [docs,testing] FWIW, we lost this argument a while back and worked around it in Pyramid, zope.*, and repoze.*. the 'dev' and 'docs' aliases[1] do what you want: $ python setup.py dev docs []1 defined in 'setup.cfg' Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCZKSwACgkQ+gerLs4ltQ6R+wCg2qqDm8K2S55XKxAIr6wuP9Ux XFMAoLhldG170K9DS39siHCQLtpbTrck =aJs8 -END PGP SIGNATURE- ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
On Nov 6, 2012, at 6:47 AM, Chris Withers wrote: > On 05/11/2012 20:32, Daniel Holth wrote: >> Extras are just an alias for a set of dependencies. After you run >> setup.py develop on package, just "pip install package[docs,testing]" > > it's pyramid, and I want to do setup.py develop [docs,testing] It's no longer fashionable to have a project's build script reach out and install its own dependencies. If you want a one-liner try pip install -e . pyramid[docs,testing] > > cheers, > > Chris > > -- > Simplistix - Content Management, Batch Processing & Python Consulting >- http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
On 05/11/2012 20:32, Daniel Holth wrote: Extras are just an alias for a set of dependencies. After you run setup.py develop on package, just "pip install package[docs,testing]" it's pyramid, and I want to do setup.py develop [docs,testing] cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
Extras are just an alias for a set of dependencies. After you run setup.py develop on package, just "pip install package[docs,testing]" ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] python setup.py develop and extras
On 2012-11-05 06:33:45 +, Chris Withers said: Hi All, If I'm doing: python setep.py develop --allow-hosts=pypi.python.org ...to install a checkout of a package into a virutalenv, how do I specify what extras (docs,testing in this case) I'd like? In setup.py, you can do: install_requires=[ 'foo[bar]', ] where "bar" is the name of the extras_require, not sure if that helps you or not. cheers, Chris -- Alex Clark · https://www.gittip.com/aclark4life/ ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
[Distutils] python setup.py develop and extras
Hi All, If I'm doing: python setep.py develop --allow-hosts=pypi.python.org ...to install a checkout of a package into a virutalenv, how do I specify what extras (docs,testing in this case) I'd like? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig