| |
@@ -30,12 +30,37 @@
|
| |
== Automatically generated dependencies for Python packages
|
| |
|
| |
The generator which generates Provides and Requires for Python RPM
|
| |
- packages based on the setup.py file has been enabled by default. This
|
| |
+ packages based on the `setup.py` file has been enabled by default. This
|
| |
makes the packaging of Python packages easier and more automatic by
|
| |
reusing information provided by the upstream project, and should result
|
| |
- in fewer unecessary or missing dependencies in rpms.
|
| |
+ in fewer unecessary or missing dependencies in RPMs.
|
| |
|
| |
== Python progressbar replaced with progressbar2
|
| |
|
| |
- The progressbar package has been updated to use the progressbar2 fork,
|
| |
+ The `progressbar` package has been updated to use the `progressbar2` fork,
|
| |
which is newer and better maitained.
|
| |
+
|
| |
+ [[python-build-flags]]
|
| |
+ == Avoid Fedora-specific build flags in non-RPM Python extensions
|
| |
+
|
| |
+ The build flags (`CFLAGS`, `CXXFLAGS` and `LDFLAGS`) saved in the Python's distutils module for building extension modules are switched from:
|
| |
+
|
| |
+ * `%\{build_cflags}`,
|
| |
+ * `%\{build_cxxflags}` and
|
| |
+ * `%\{build_ldflags}`
|
| |
+
|
| |
+ to
|
| |
+
|
| |
+ * `%\{extension_cflags}`,
|
| |
+ * `%\{extension_cxxflags}` and
|
| |
+ * `%\{extension_ldflags}`.
|
| |
+
|
| |
+ This link:https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md#support-for-extension-builders[currently means] that no GCC plugins (such as annobin) are activated and no GCC spec files (`-specs=` arguments) are used by default when building Python extension modules (e.g. with `python3 setup.py build`).
|
| |
+
|
| |
+ The `python3-devel` package will lose its runtime dependency on `redhat-rpm-config` (which was only required for annobin support and GCC spec files).
|
| |
+
|
| |
+ The change affects building extension modules by users, outside of the RPM environment. The Python standard library and Fedora's Python 3 RPM packages are still built with the "traditional" set of flags (`%\{build_cflags}` etc.), unless the package uses nonstandard methods to build the extensions.
|
| |
+
|
| |
+ Only Python 3.7 and 3.6 will be changed.
|
| |
+
|
| |
+ For detailed information about this change, including justification and impact on Python developers and packages, see the link:https://fedoraproject.org/wiki/Changes/Python_Extension_Flags[Change page on the Wiki].
|
| |
Fixes #286