Skip to content

Python 3 6 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions python3-ac_fixes.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- Python-3.6.2/configure.ac~ 2017-07-08 05:33:27.000000000 +0200
+++ Python-3.6.2/configure.ac 2017-08-07 10:28:44.498951134 +0200
@@ -1494,26 +1494,7 @@ then
@@ -1491,24 +1491,7 @@ then
CFLAGS_ALIASING="-fno-strict-aliasing"
fi

Expand All @@ -22,9 +22,8 @@
- OPT="-O3 -Wall"
- ;;
- esac
-
- OPT="$OPT $STRICT_PROTO"
+ OPT="$OPT $CPPFLAGS $CFLAGS $STRICT_PROTO"
+ OPT="$OPT $CPPFLAGS $CFLAGS"

case $ac_sys_system in
SCO_SV*) OPT="$OPT -m486 -DSCO5"

14 changes: 10 additions & 4 deletions python3.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
%bcond_without tkinter # disables tkinter module building
%bcond_without tests # disables Python testing
%bcond_with verbose_tests # runs tests in verbose mode
%bcond_with optimizations # optimitations
#
# tests which will not work on 64-bit platforms
%define no64bit_tests test_audioop test_rgbimg test_imageop
Expand All @@ -17,6 +18,7 @@
# test_time: test_AsTimeval (test.test_time.TestCPyTime), rounding error
%ifarch x32
%define broken_tests_x32 test_time
%undefine with_optimizations
%endif
%define broken_tests test_nntplib test_gdb test_site test_ssl %{?broken_tests_x32}

Expand All @@ -38,13 +40,13 @@ Summary(ru.UTF-8): Язык программирования очень высо
Summary(tr.UTF-8): X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili
Summary(uk.UTF-8): Мова програмування дуже високого рівня з X-інтерфейсом
Name: python3
Version: %{py_ver}.5
Release: 3
Version: %{py_ver}.6
Release: 2
Epoch: 1
License: PSF
Group: Development/Languages/Python
Source0: https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
# Source0-md5: 9f49654a4d6f733ff3284ab9d227e9fd
# Source0-md5: c3f30a0aff425dda77d19e02f420d6ba
Source1: pyconfig.h.in
Patch0: %{name}-pythonpath.patch
Patch1: %{name}-ac_fixes.patch
Expand Down Expand Up @@ -531,7 +533,11 @@ fi
--with-system-expat \
--with-system-ffi \
%{?with_system_mpdecimal:--with-system-libmpdec} \
--with-threads
--with-threads \
%if %{with optimizations}
--enable-optimizations \
--with-lto
%endif

%{__make} 2>&1 | awk '
BEGIN { fail = 0; logmsg = ""; }
Expand Down