Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Update macros.python3.5 to align with python36u
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwgeorge committed Feb 6, 2018
1 parent e9aebf6 commit 71a8838
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
25 changes: 14 additions & 11 deletions SOURCES/macros.python3.5
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
%__python35u /usr/bin/python3.5
%python35u_sitelib %(%{__python35u} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
%python35u_sitearch %(%{__python35u} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
%python35u_version %(%{__python35u} -c "import sys; sys.stdout.write(sys.version[:3])")
%python35u_version_nodots %(%{__python35u} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
%py35udir %{_builddir}/python35u-%{name}-%{version}-%{release}
%__python35 /usr/bin/python3.5
%python35_sitelib %(%{__python35} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
%python35_sitearch %(%{__python35} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
%python35_version %(%{__python35} -c "import sys; sys.stdout.write(sys.version[:3])")
%python35_version_nodots %(%{__python35} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
%py35dir %{_builddir}/python35-%{name}-%{version}-%{release}

%py35u_shbang_opts -s
%py35_shbang_opts -s

%py35u_build() %{expand:\
CFLAGS="%{optflags}" %{__python35u} setup.py %{?py_setup_args} build --executable="%{__python35u} %{py35u_shbang_opts}" %{?1}\
# Use the slashes after expand so that the command starts on the same line as
# the macro
%py35_build() %{expand:\\\
CFLAGS="%{optflags}" %{__python35} setup.py %{?py_setup_args} build --executable="%{__python35} %{py35_shbang_opts}" %{?*}
sleep 1
}

%py35u_install() %{expand:\
CFLAGS="%{optflags}" %{__python35u} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\
%py35_install() %{expand:\\\
CFLAGS="%{optflags}" %{__python35} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
}
5 changes: 3 additions & 2 deletions SPECS/python35u.spec
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ Source1: find-provides-without-python-sonames.sh
%global _use_internal_dependency_generator 0
%global __find_provides %{SOURCE1}

# Supply various useful macros for building python 3.5 modules:
# __python35u, python35u_sitelib, python35u_sitearch
# Supply various useful macros for building python 3.X modules:
# __python3X, python3X_sitelib, python3X_sitearch
Source2: macros.python%{pybasever}

# Supply an RPM macro "py_byte_compile" for the python3-devel subpackage
Expand Down Expand Up @@ -1513,6 +1513,7 @@ CheckPython optimized
- Run autotools (autoconf268) to generate the configure script before building (Fedora)
- Use bundled expat on EL6
- Drop unnecessary db4 build requirement
- Update macros.python3.5 to align with python36u

* Tue Aug 08 2017 Ben Harper <ben.harper@rackspace.com> - 3.5.4-1.ius
- Latest upstream
Expand Down

0 comments on commit 71a8838

Please sign in to comment.