Skip to content

Commit

Permalink
Add distutils workaround
Browse files Browse the repository at this point in the history
Work around pypa/setuptools#3007

Signed-off-by: William Douglas <william.douglas@intel.com>
  • Loading branch information
bryteise authored and clrpackages committed Jan 17, 2022
1 parent 9c988d6 commit b95a14c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions python3.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: python3
Version: 3.10.1
Release: 243
Release: 244
License: Python-2.0
Summary: The Python Programming Language
Url: http://www.python.org
Expand Down Expand Up @@ -128,13 +128,13 @@ export NM=gcc-nm
export LANG=C
export CFLAGS="$CFLAGS -O3 -fno-semantic-interposition"
%configure %python_configure_flags --enable-shared
make %{?_smp_mflags}
SETUPTOOLS_USE_DISTUTILS=stdlib make %{?_smp_mflags}

pushd ../Python-avx2
export CFLAGS="$CFLAGS -march=x86-64-v3 -mno-vzeroupper "
export CXXFLAGS="$CXXFLAGS -march=x86-64-v3 -mno-vzeroupper "
%configure %python_configure_flags --enable-shared
make %{?_smp_mflags}
SETUPTOOLS_USE_DISTUTILS=stdlib make %{?_smp_mflags}
popd

%install
Expand All @@ -158,15 +158,15 @@ mv %{buildroot}-v3/usr/lib/libpython*.so* %{buildroot}-v3/usr/lib64/

make clean
%configure %python_configure_flags --enable-optimizations
make profile-opt %{?_smp_mflags}
SETUPTOOLS_USE_DISTUTILS=stdlib make profile-opt %{?_smp_mflags}
%make_install

pushd ../Python-avx2
make clean
export CFLAGS="$CFLAGS -march=x86-64-v3 -mno-vzeroupper "
export CXXFLAGS="$CXXFLAGS -march=x86-64-v3 -mno-vzeroupper "
%configure %python_configure_flags --enable-optimizations
make profile-opt %{?_smp_mflags}
SETUPTOOLS_USE_DISTUTILS=stdlib make profile-opt %{?_smp_mflags}
%make_install_v3
popd

Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
243
244

0 comments on commit b95a14c

Please sign in to comment.