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
Re: [Distutils] Unexpected easy_install -zmaxd behavior when package is already installed
On 2012-11-05 16:18:27 +, David Genest said: Hello, I am using easy_install on windows for its ability to install binary eggs (and compiled extension modules). Also using virtualenv to separate my environments. I want to be able to manage an egg cache to be used in a local installation workflow: download the package and build the eggs in a defined directory. E.g. Like what Buildout does for you? I first download the package using the documented approach of getting the packages built into eggs in a directory: easy_install -zmaxd [my_dir] I would expect to have zipped eggs at the my_dir destination. my_dir is not the destination it's the requirement_or_url e.g. Something with a setup.py in it. This works as expected only if I start from a clean virtualenv. If the environment is already populated (or installed) with the package I want to cache, it is this package (from site-packages) that is taken to my cache directory, not the zipped egg (I presume because the package is not zip safe). Is there a way around this behaviour? I don't fully understand, but I expect this may be normal given the contraints above (i.e. easy_install does not understand what you intend by specifying my_dir AFAICT). Thank you, D. ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig -- Alex Clark · https://www.gittip.com/aclark4life/ ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] Unexpected easy_install -zmaxd behavior when package is already installed
I want to be able to manage an egg cache to be used in a local installation workflow: download the package and build the eggs in a defined directory. E.g. Like what Buildout does for you? Haven't looked at this. Will do, thank you. I first download the package using the documented approach of getting the packages built into eggs in a directory: easy_install -zmaxd [my_dir] I would expect to have zipped eggs at the my_dir destination. my_dir is not the destination it's the requirement_or_url e.g. Something with a setup.py in it. Sorry, my usage was not complete. If you do: $ mkdir tmp $ easy_install -zmaxd tmp/ pyramid All the packages and dependencies of pyramid will be downloaded locally in the tmp/ directory. As per: http://packages.python.org/distribute/easy_install.html#installing-on-un-networked-machines This works as expected only if I start from a clean virtualenv. If the environment is already populated (or installed) with the package I want to cache, it is this package (from site-packages) that is taken to my cache directory, not the zipped egg (I presume because the package is not zip safe). Is there a way around this behaviour? I don't fully understand, but I expect this may be normal given the contraints above (i.e. easy_install does not understand what you intend by specifying my_dir AFAICT). For my specific pyramid example above, if the virtualenv I start from is empty, the pyramid and dependencies eggs are put and built in the tmp/ dir. Otherwise, if the environment has pyramid installed, the eggs are unzipped (as they are when installed) in the tmp/ directory. ___ 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