ALT Linux repositórios
Group :: Desenvolvimento/Outros
RPM: rpm-build-python
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
1 maio 2021 Dmitry V. Levin <ldv at altlinux.org> 0.43.2-alt1
- python.{prov,req}.files: removed redundant text file check.
- python.{prov,req}.files: print diagnostics about skipped unknown .py files.
- python.{prov,req}.files: skip unknown .py files when rpm-build-python
is not installed.
- python.prov, python.req: enhanced error diagnostics.
- Revert the change made in 0.40.1-alt1.
- python.req.files: do not treat *.so as potential python extensions
unless /usr/lib/rpm/python.req.py is available.
- Imported brp-bytecompile_python and brp-hardlink_pyo_pyc from rpm-build.
- python.prov, python.req: skip python invocation when invoked without arguments.
- Introduced rpm-macros-python subpackage and moved non-python files there.
- Fixed processing script files reported as 'python2 script text executable'.
- Set __python macro to python2.7.
- Fixed python.req.py and test.sh (use python2-base instead of python-base).
- Fixed shebangs and interpreter calls (use versioned python).
- Made the package require no python-base.
- Assume that setuptools are required if the traditional Python build/install
macros are used (overridable through %python_setup_buildrequires).
The idea is that the Build Root Policy scripts for Python are executed
unconditionally whenever python is present in the system, but the
setuptools requirement is optional. (As a consequence, there may be a
working system with Python without setuptools, because setuptools
are not used at runtime.)
- Added macro python_version_nodots for retrieving python version
in format 'MajorMinor' without dot delimiter.
- Fix bug when file may be skipped during 'provides' and 'requires' calculations
if file is located in %python_sitelibdir and file name starts with 'python3'.
- (Minor backports from rpm-build-python3.)
- .prov.py: generalize to generate longer provs, too.
- %python_req_nohier added, the reverse to %python_req_hier
(in future, when there is enough provs, we'd like to
use the req_hier mode by default; packages can prepare beforehand) - Print a bit more diagnostics for ignored/skipped/hidden autoreqs.
- %python{,_build}_install: force deterministic behavior (useful in
case of conflicting stuff from simultaneous python2 and python3 builds). - compileall.py: depth-first processing (like in rpm-build-python3).
- implemented %requires_python_ABI, which ultimately asks verify_elf
to LD_PRELOAD.
- python.compileall.py: remove unused variable.
- Unpackaged tools subpackage.
- python.prov.files: assume that all python extensions are located
in /usr/lib*/python2*/ or $RPM_PYTHON_LIB_PATH.
- python.compileall.py:
+ removed python version <= 2.2 py_compile workaround;
+ fixed file executability check (by iv@). - python.{prov,req}.files:
+ enhanced "python script text executable" type check;
+ added is_python3_path check from python.{prov,req}.py,
which is now applied only to files of uncertain type. - python.{prov,req}.py: removed is_python3 check.
- brp-bytecompile_python:
added $RPM_PYTHON3_COMPILE_INCLUDE to the exclude list (closes: #28606).
- python.{prov,req}.files: reintroduced optimization from 0.36.0-alt3.
- python.prov.files: skip all files that cannot be provided due to
rpmbuild restrictions.
- Take %_python3_path into account
- Exclude /usr/lib*/python3.{2,3} from automatic compile
- Require python-base >= 2.7.2-alt3 (with subprocess module)
- Simplify automatic dependencies to python-base and python-modules
- Skip processing python3 scripts and %_libdir/python3 stuff
- add python-2.7 support
- Added macro %python_build_install, an hybrid of %python_build and
%python_install
- Moved directive --debug into macro %python_build_debug (thnx ldv@)
- Added into macros %python_build compiler flags, and now we may
using %add_optflags
- Fixed x86-64 support: changed %_python_compile_include default
value to contain both %_target_libdir and %_target_libdir_noarch.
- Fixed %_python_set_noarch() and %python_sitelibdir_noarch
definitions to use %_target_libdir_noarch instead of %_libexecdir.
Rationale: Some packages override %_libexecdir to /usr/libexec,
and %python_sitelibdir_noarch shouldn't be affected by this.
- Added macros: %_python_set_arch (backward of %_python_set_noarch),
and %python_sitelibdir_noarch
- Fixed %py_dependencies
- Reverted erroneous change made in previous release.
- Added macros %_python_version as equivalent %__python_version for
use in spec files
- Added %_python_set_noarch macro for set paths for noarch python
subpackages in archdep packages
- Rebuilt with python 2.6
- Add support for python 2.6
- Hierarchical search fixed (syntax tree format is evidently extended)
- Relative Imports (PEP 328) ignored (closes #17154)
- rpm-build-python-tools: Disabled python dependencies,
scheduled for removal.
- python.prov.py: Re-added limited support for multpile provides - e.g.
PIL/Image.py provides both python2.5(PIL.Image) due to PIL/__init__.py
and python2.5(Image) due to PIL.pth. - python.prov.py: Do not provide module names with "-" dashes.
- python.prov.py: Major rewrite.
- %python_build: Remove redundancy.
- Added %python_build and %python_install macros (closes: #13941).
- Relocated macro files to /usr/lib/rpm/macros.d/.
- Fix #18210 (by roughly removing distutil file)
- Fix *64 byte compilation of noarch packages
- Rebuilt with python-2.5.
- python.req.py: implemented search for particular encoding modules, e.g.
"# coding: cp1251" should yield dependency on "python2.4(encodings.cp1251)" - python.req.py: relaxed fatal error condition for possibly non-pythonish
files; files with *.py suffix or shebang line considered pythonish
- python.req.py: fixed parser.suite failures on empty lines
with trailing whitespaces - python.req.py: parser.suite failures are now fatal errors
- python.req.py: added support for "coding:" magic comments,
which should yield dependency on "encodings" - python.{req,prov}.files: more elaborate file selection
- adapted for new rpm-build
- python.req.py: attempted to implement stronger self-requires
elimination, to deal with unmet dependencies which arise with
non-standard directory layout
- Revert "added macros from /usr/lib/rpm/*/macros",
due to rpm '%undefine' unexpected behaviour
- python.req.py: restored .py suffix check until rpm-build
can use python.req.files
- python.req.py:
+ fixed a bug in "import" clause analysis, due to which only
the first dependency of multiple arguments was produced; i.e.
Old result: 'import os, re' -> Requires: python2.4(os)
New result: 'import os, re' -> Requires: python2.4(os), python2.4(re)
+ made it fail on import errors (also python.prov.py)
+ made it print stderr diagnostics when the dependency is being ignored
+ disabled .py suffix check, for the sake of plain python scripts - added dependency on python-base, so that python.req.py and python.prov.py
always work (also explained this change in policy/5-Python_FAQ.txt) - added buildreq skiplist and placed LC_ALL=C as needed in order to avoid
dumb dependency on encoding modules when e.g. evaluating %__python_version - added new files, for possible use with future rpm-build releases:
+ python.req (python.prov) - wrapper for python.req.py (resp. python.prov.py)
+ python.req.files (.prov.files) - will select python files for req/prov
+ /etc/rpm/macros.d/python.env - piece of rpm-build scriplets' preamble
+ also placed rpm-build python macros to /etc/rpm/macros.d/python
- (avm@) Search for .pth files in lib64, too
- Minor policy fix
- move distutils extention to /usr/lib64 instead of /usr/lib
- More verbose diagnostic in rpm-build-python-utils
- Minor policy bug fixed
- x86_64 adapdation (so it builds equally on any architecture)
- _target_libdir is used
- absolute symlinks turned to relative
- Override %__python_version macro provided by rpm-build (#9974).
- Specfile cleanup.
- Add support for python 2.5
- convert text files to UTF-8
- Fix #8855
- Fixing provides generator to work with ".pth" files
- Generation hierarchical requires fixed
- Tools renamed
- Diagnostic tools package added
- Some files moved from /python2.3 to /python2.4
- Draft of new policy version added
- numerous rpm macros enhancements (svn rev. 10)
- Some macros added: (py_requires, py_provides, etc)
- Preliminary fix for python2.4 compatibility has been added
- Documentation is fixed: special thanks for Ivan Fedorov
- Some stupid bugs that damaged tracebacks are fixed. I think all python
packages must be rebuilded.
- Splitted module support added
- Recursive module support added
- Policy files are renamed by MHZ request;
- Some macros added (see RpmMacros.txt);
- File "=" don't be created any more (bug);
- python-<modulename> don't be provided any more (bug #4819)
- Some changes from Alexey Morozov <morozov@altlinux.org> added,
descriptions followed: - Defined %__python_package_prefix, typo fixes in macro functions
documentation; - Updated Python_MODULE.txt;
- Documentation changed
- Keyword "relaxed" can be used instead "slight"
- Article about "Require python2.3(__future__)" added into FAQ;
- Codec declaration excluded from find req/prov python scripts;
- Python build utilites will be silently exit if python are not fully installed;
- Python auto Prov use *pth files now;
- Fix some python2.2 incompatibilites
- Provides detection enchanced (detect old-style <name>module.so library);
- Some historical clauses exluded from bdist_altrpm;
- Some documentation changes;
- Ready for sysiphus
- Package rebuilded to use with new rpm
- Some domcmentations added;
- Fix another "BuildNoarch Problem": BuildRequires correctly inserted now;
- Add BuildPreReq: python_devel = X.Y into spec setup function;
- Fix "BuildNoarch Problem"
- Add some documentation
- Debugging operators removed
- Sources put into archive
- BuildPreReq added into setup_python_module
- Command bdist_altrpm for distutils added;
- New bytecompiler added
- Defaults treatment enhanced
- Python scripts for find provides and requires added;
- New RPM macros;
- Samples of find-* added;
- Initial release