[Distutils] Need help with a usecase
Tres Seaver
tseaver at palladion.com
Tue Apr 19 21:48:53 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/19/2011 03:46 AM, Reinout van Rees wrote:
> On 18-04-11 16:32, Jim Fulton wrote:
>>> My project (checked out from Git to be specific) comes with a
>>>> Distribute-based setup.py, and I'd like to install it into an isolated
>>>> Python environment. That is, the equivalent of running 'python
>>>> setup.py.install' in my project directory, but into an isolated environment.
>>>> I was hoping I could use Buildout for this.
>> Your specific requirements is better matched by virtualenv.
>
> It *is* possible with buildout in case you want to experiment :-)
> Put this in your buildout.cfg:
>
> [buildout]
> develop = .
> parts = scripts
>
> [scripts]
> recipe = zc.recipe.egg
> eggs = your-egg-name
>
> Grab a bootstrap.py, run it and run bin/buildout.
>
>
> The one thing that, to me, still is a big advantage of buildout over
> virtualenv in cases like this: you can just run the scripts in bin/*
> as-is. You do not need to activate the virtualenv beforehand.
You don't ever *need* to activate a virtualenv to run its scripts -- you
just type 'bin/foo' from the VE root, or '/path/to/VE/bin/foo' from
elsewhere. After using VE for years, I have literally never used
activate, while using multiple VE's daily.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2t5yUACgkQ+gerLs4ltQ4KLACguvDEhCAlHdgLGajFZEqjlP+4
Cm8An3gTzHp7E9IkFA+aUpTl2P64n/2S
=tHbE
-----END PGP SIGNATURE-----
More information about the Distutils-SIG
mailing list