| Name: | python2-rpm-macros |
|---|---|
| Version: | 3 |
| Release: | 38.module+el8.9.0+90013+b7cb8eec |
| Architecture: | noarch |
| Module: | python27:2.7:8090020231116015328:392b0bf1 python27:2.7:8100020240410221935:10 |
| Group: | Unspecified |
| Size: | 1863 |
| License: | MIT |
| RPM: | python2-rpm-macros-3-38.module+el8.9.0+90013+b7cb8eec.noarch.rpm |
| Source RPM: | python2-rpm-macros-3-38.module+el8.9.0+90013+b7cb8eec.src.rpm |
| Build Date: | Wed Oct 25 2023 |
| Build Host: | build-ol8-x86_64.oracle.com |
| Vendor: | Oracle America |
| Summary: | RPM macros for building Python 2 packages |
| Description: | RPM macros for building Python 2 packages. |
- Bumping due to problems with modular RPM upgrade path - Resolves: rhbz#1695587
- Workaround leaking buildroot PATH in
python_binary="%1"
buildroot_path="%2"
bytecode_compilation_path=".${buildroot_path/#$RPM_BUILD_ROOT}"
failure=0
pushd $RPM_BUILD_ROOT
find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -O -m py_compile || failure=1
find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -m py_compile || failure=1
popd
test $failure -eq 0
- Resolves: rhbz#1644455
- Make %py_byte_compile terminate build on SyntaxErrors - Resolves: rhbz#1620168
- Separate the python2-rpm-macros subpackage into its own component
- macros.pybytecompile: Macro was not line-continued properly and thus didn't work
- macros.pybytecompile: Detect Python version through sys.version_info instead of guessing from the executable name
- Merging: (Tue Jul 10 2018 Tomas Orsava <torsava@redhat.com> - 3-32)
- Fix %py_byte_compile macro: when invoked with a Python 2 binary it also
mistakenly ran py3_byte_compile
- Merging: (Tue Jul 03 2018 Miro Hrončok <mhroncok@redhat.com> - 3-31)
- Add %python3_platform useful for PYTHONPATH on arched builds
- Merging: (Mon Jun 18 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-30)
- Add %pypi_source macro, as well as %__pypi_url and
%_pypi_default_extension.
- Merging: (Wed Apr 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3-29)
- move macros.pybytecompile from python3-devel
- Remove RHEL_ALLOW_PYTHON2_FOR_BUILD=1 from build and install macros, as that is where the user needs to set it themself
- Explicitly enable Python 2 when invoking Python 2 macros See: https://url.corp.redhat.com/rhel8-py2
- Switch the Python 3 executable to /usr/libexec/platform-python - Update macros using pip or easy_install to be invoked through the main executable