Make egg metadata information available for Debian packaging
Project description
Tools for introspecting egg-info directories and translating the resulting information into debian format. This information is translated:
Setuptools version numbers to debian format that sorts correctly
Setuptools package names to debian binary and source package names
Setuptools dependencies to debian dependencies
This package provides a script van-pydeb which introspects an installed .egg-info to extract egg dependency information. The package names are converted to their debian equivilant and the dependency information is printed in the format of a dpkg “Depends:” line.
Usage
To extract the dependency info of this package, one can:
$ python2.4 setup.py build $ PYTHONPATH=./src python2.4 van-pydeb --depends --egg_info src/vanguardistas.van-pydeb.egg-info python-setuptools, python-vanguardistas
This information can then used in a debian/rules file as follows:
i=”$$(van-pydeb depends –egg-info debian/$(PACKAGE)/usr/lib/python$*/site-packages/$(EGG_NAME).egg-info)” && echo “setuptools:Depends=$$i” >> debian/$(PACKAGE).substvars
The different methods of using this are:
Give the dependencies (including the extra dependencies) of the package:
van-pydeb depends –egg-info debian/$(PACKAGE)/usr/lip/python$*/$(EGG_NAME).egg-info
The dependencies of an extra:
van-pydeb depends –egg-info debian/$(PACKAGE)/usr/lip/python$*/$(EGG_NAME).egg-info –extra $(EXTRA)
The dependencies of 2 extras:
van-pydeb depends –egg-info debian/$(PACKAGE)/usr/lip/python$*/$(EGG_NAME).egg-info –extra $(EXTRA) –extra $(EXTRA2)
The dependencies of a package excluding the dependencies of extras:
van-pydeb depends –egg-info debian/$(PACKAGE)/usr/lip/python$*/$(EGG_NAME).egg-info –exclude-extra $(EXTRA1) –exclude-extra $(EXTRA2)
1.1.0 (2009-05-26)
Obligatory “How could I have done that” release smoothing out documentation bugs and making the command line options more complete.
1.0.0 (2009-05-26)
Initial 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
File details
Details for the file van.pydeb-1.1.0.tar.gz
.
File metadata
- Download URL: van.pydeb-1.1.0.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d991d23fe8c3d50b8275533a42a827c38ac2c7ae15d241da05e41d095db5b2 |
|
MD5 | a30c62919419b8b2c8a35409bbf4576b |
|
BLAKE2b-256 | d57a6349ea7fa1532ff4a68a994de9adf6c3d2abbd451af37a232679fdb53410 |