Simple recipe to collect symbolic links in one directory.
Project description
svetlyak40wt.recipe.symlinks
============================
Usage
-----
This is a simple buildout recipe to collect symbolic links.
For example, you have isolated buildout environment, but want
pull some files from a standart debian's distribution os pyexiv2.
In that case, you can collect all neccessary links in one directory
and add it as `extra-path`. Or use it to make symlink to django admin's
media directory.
Here is a minimal buildout.cfg:
[buildout]
parts = pyexiv2 python django-media
[pyexiv2]
recipe = svetlyak40wt.recipe.symlinks
path = parts/pyexiv2
files =
/usr/share/pyshared/pyexiv2.py
/usr/lib/python2.5/site-packages/libpyexiv2.so
/tmp my-temp
[django-media]
recipe = svetlyak40wt.recipe.symlinks
path = media
files =
${buildout:parts-directory}/django/django/contrib/admin/media admin
[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ipython
extra-paths = ${pyexiv2:path}
ChangeLog
---------
### 0.1.3
Prevent zc.buildout from removing all directory content on uninstall. Now script removes
just those symlinks which was created during the previous call. Thanks to Shaun Sephton
for the patch.
### 0.1.2
Added ability to supply custom link name. So, if you specify files=`/blah/minor foo`
and `path=media`, then file `/blah/minor` will be linked as `media/foo`.
### 0.1.1
Fixed bug when first directories of the `path` don't exist.
### 0.1.0
Initial release. Seems that all work as supposed.
Author
------
Alexander Artemenko svetlyak.40wt at gmail.com
Credits
-------
* Shaun Sephton: patch to remove symlinks only.
Source
------
<http://github.com/svetlyak40wt/svetlyak40wt.recipe.symlinks/>
Feel free to comment, clone and send patches.
============================
Usage
-----
This is a simple buildout recipe to collect symbolic links.
For example, you have isolated buildout environment, but want
pull some files from a standart debian's distribution os pyexiv2.
In that case, you can collect all neccessary links in one directory
and add it as `extra-path`. Or use it to make symlink to django admin's
media directory.
Here is a minimal buildout.cfg:
[buildout]
parts = pyexiv2 python django-media
[pyexiv2]
recipe = svetlyak40wt.recipe.symlinks
path = parts/pyexiv2
files =
/usr/share/pyshared/pyexiv2.py
/usr/lib/python2.5/site-packages/libpyexiv2.so
/tmp my-temp
[django-media]
recipe = svetlyak40wt.recipe.symlinks
path = media
files =
${buildout:parts-directory}/django/django/contrib/admin/media admin
[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ipython
extra-paths = ${pyexiv2:path}
ChangeLog
---------
### 0.1.3
Prevent zc.buildout from removing all directory content on uninstall. Now script removes
just those symlinks which was created during the previous call. Thanks to Shaun Sephton
for the patch.
### 0.1.2
Added ability to supply custom link name. So, if you specify files=`/blah/minor foo`
and `path=media`, then file `/blah/minor` will be linked as `media/foo`.
### 0.1.1
Fixed bug when first directories of the `path` don't exist.
### 0.1.0
Initial release. Seems that all work as supposed.
Author
------
Alexander Artemenko svetlyak.40wt at gmail.com
Credits
-------
* Shaun Sephton: patch to remove symlinks only.
Source
------
<http://github.com/svetlyak40wt/svetlyak40wt.recipe.symlinks/>
Feel free to comment, clone and send patches.
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
File details
Details for the file svetlyak40wt.recipe.symlinks-0.1.3.tar.gz
.
File metadata
- Download URL: svetlyak40wt.recipe.symlinks-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8ede3b5bf284aa2113d72fab98117d9e4db4f7868c2ab114636102cb7d5c90d |
|
MD5 | 81b9bed91568997e902d6c23e3d65a2c |
|
BLAKE2b-256 | 148277670dc4a39fcac2c4ed2a0da175923e7467f5a20af3d5bc166e8229df73 |