Skip to main content

buildout.locallib use egg-packages installed on site-packages folder.

Project description

buildout.locallib use egg-packages installed on site-packages folder.

zc.buildout check package installation by zc.buildout.easy_install.Installer that exclude /path/to/site-packages folder path for checking.

When ‘site-packages’ folder include some easy-installed packages, We want to re-use these packages in some cases.

Using sample

site-packages include some eggs:

$ ls /path/to/site-packages
easy-install.pth
pip-0.6.3-py2.6.egg/
pastedeploy-1.3.3-py2.6.egg/
pastescript-1.7.3-py2.6.egg/
paste-1.7.4-py2.6.egg/
setuptools-0.6c11-py2.6.egg
setuptools.pth

write buildout.cfg:

[buildout]
parts = foo

[foo]
recipe = zc.recipe.egg
eggs =
    PasteScript

run bootstrap and buildout:

$ python bootstrap.py
$ bin/buildout -U
...

list eggs dir:

$ ls eggs
zc.recipe.egg-1.2.3b2-py2.6.egg
pastescript-1.7.3-py2.6.egg
pastedeploy-1.3.3-py2.6.egg
paste-1.7.4-py2.6.egg

(clean-up):

$ rm -R eggs

Now update buildout.cfg to use buildout.locallib extension:

[buildout]
parts = foo
extensions = buildout.locallib
...

And run buildout again:

$ bin/buildout -U
...

Check your eggs folder again:

$ ls eggs
buildout.locallib-0.0.1-py2.6.egg
zc.recipe.egg-1.2.3b2-py2.6.egg

If package exists at site-packages folder, now using installed version packages.

Requirements

  • Python 2.4 or later

Dependencies

Features

  • Extends zc.buildout functionality to search installed packages.

Setup

Write buildout.cfg with extensions = buildout.locallib:

[buildout]
parts = foo
extensions = buildout.locallib
...

ToDo

  • Add support script for create dummy egg-info folders.

  • Write tests.

History

0.1.0 (2010-6-27)

  • first release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

buildout.locallib-0.1.0.zip (7.0 kB view details)

Uploaded Source

Built Distributions

buildout.locallib-0.1.0-py2.6.egg (4.0 kB view details)

Uploaded Source

buildout.locallib-0.1.0-py2.5.egg (4.0 kB view details)

Uploaded Source

buildout.locallib-0.1.0-py2.4.egg (4.0 kB view details)

Uploaded Source

File details

Details for the file buildout.locallib-0.1.0.zip.

File metadata

File hashes

Hashes for buildout.locallib-0.1.0.zip
Algorithm Hash digest
SHA256 0d4837a7d5dd7c96ccc7de2dcf0f45057bd7cbe26a81c97ea13feedb71ce8e45
MD5 f4bdff0fd4091d9f0ae15a332c9e1ac7
BLAKE2b-256 d1b4e92846d73c2443cfce67c8e6bdcb168997995ce02517b9c08346ff3e3514

See more details on using hashes here.

File details

Details for the file buildout.locallib-0.1.0-py2.6.egg.

File metadata

File hashes

Hashes for buildout.locallib-0.1.0-py2.6.egg
Algorithm Hash digest
SHA256 9ab2dbf2cc024e25bf32c0f2450447bfc359f06d2a81b9f6f08a1f6e37377d62
MD5 e66442f870ba49675df55b3b847ef967
BLAKE2b-256 5964f07e95ee81fd0531b006a2c8f8b8f14089df90ff52f4a6e51fd420cab3dd

See more details on using hashes here.

File details

Details for the file buildout.locallib-0.1.0-py2.5.egg.

File metadata

File hashes

Hashes for buildout.locallib-0.1.0-py2.5.egg
Algorithm Hash digest
SHA256 0e00a8f9797d0405ab95e3657ecef82cdcec652b8ff3ad99102e77b1b8b856e2
MD5 3ae2f1af41ddfbdda9d6bf747494b20c
BLAKE2b-256 577d1139dc5369c02645b3a89c006a2068c11584146d7f6cdc298ead902081df

See more details on using hashes here.

File details

Details for the file buildout.locallib-0.1.0-py2.4.egg.

File metadata

File hashes

Hashes for buildout.locallib-0.1.0-py2.4.egg
Algorithm Hash digest
SHA256 7dfcfda4f61a893346df56911eda53f012372b6cfc81c0066b7a9d40138913d0
MD5 6e059498aaf31657fb381e6d4c144826
BLAKE2b-256 698dbf6500d1f8a53a4825ba113658b7957c1046ea51404ea68a73f686c39e7a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page