Closed mcyprian closed 8 years ago
I 've rewritten it using virtualenv-api, code doesn't seem to be much faster but it is definitely a bit nicer. I 've also added tests for this module and made it all Python2.6 compatible.
Trying pyp2rpm pytest
I end up with:
%{_bindir}/py.test
%{_bindir}/py.test-2
%{_bindir}/py.test-%{python2_version}
%{_bindir}/py.test-2.7
%{_bindir}/py.test-2.7-2
%{_bindir}/py.test-2.7-%{python2_version}
It is possible to get more accurate metadata using this module, it installs package to virtualenv in temporary directory and scans scripts, and site_pacakges file that appears after instalation. It can also get list of other installed packages - package runtime dependancies. Metadata from virtualenv are appended to metadata from archive and don't overwrite them.