Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hroncok/python-rpm-imports
Macros for RPM to automateProvides of Python modules/imports
https://github.com/hroncok/python-rpm-imports
Last synced: 15 days ago
JSON representation
Macros for RPM to automateProvides of Python modules/imports
- Host: GitHub
- URL: https://github.com/hroncok/python-rpm-imports
- Owner: hroncok
- Created: 2013-06-14T02:27:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-16T11:11:25.000Z (over 11 years ago)
- Last Synced: 2024-12-13T20:49:01.215Z (20 days ago)
- Language: Python
- Homepage:
- Size: 101 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RPM automatically generated Provides for Python modules
=======================================================This project aims to extend RPM to automatically list available imports for Python modules, for example:
Provides: python-import(setuptools.sandbox) = 0.6.36
Status
------* The generator somehow works, but needs extended testing
* As [RPM Dependency Generator](http://www.rpm.org/wiki/PackagerDocs/DependencyGenerator) ignores my attempts to catch a directory, for each file this scan the entire directoryRequires
--------At the beginning I also wanted to automatically list dependencies. The problem is I cannot tell if `foo.bar` is a module or a class from this:
from foo import bar
So right now, I'v dropped this (but you can see the draft in [cde1c06029](https://github.com/hroncok/python-rpm-imports/blob/cde1c06029f6bff27bfe566052e1162ebd45ae25/list-required-imports.py)).
How to test
-----------Firstly, generate Python 3 files by running `./generate-python3.sh`. Then copy `*.attr` to `/usr/lib/rpm/fileattrs/` and `*.prov` to `/usr/lib/rpm/`. After that `rpmbuild` should generate proper Provides for Python packages.