added python-3.5.1
This commit is contained in:
14
patches/python3-build-ext.patch
Normal file
14
patches/python3-build-ext.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- Lib/distutils/command/build_ext.py.orig 2016-02-23 19:52:34.825132845 +0100
|
||||
+++ Lib/distutils/command/build_ext.py 2016-02-23 19:48:54.363347813 +0100
|
||||
@@ -677,7 +677,10 @@
|
||||
"""
|
||||
from distutils.sysconfig import get_config_var
|
||||
ext_path = ext_name.split('.')
|
||||
- ext_suffix = get_config_var('EXT_SUFFIX')
|
||||
+ if 'EXT_SUFFIX' in os.environ:
|
||||
+ ext_suffix = os.environ['EXT_SUFFIX']
|
||||
+ else:
|
||||
+ ext_suffix = get_config_var('EXT_SUFFIX')
|
||||
return os.path.join(*ext_path) + ext_suffix
|
||||
|
||||
def get_export_symbols(self, ext):
|
||||
21
patches/python3-ccompiler.patch
Normal file
21
patches/python3-ccompiler.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
--- Lib/distutils/ccompiler.py.orig 2016-02-23 18:05:38.709628967 +0100
|
||||
+++ Lib/distutils/ccompiler.py 2016-02-23 18:06:05.155956953 +0100
|
||||
@@ -329,6 +329,8 @@
|
||||
else:
|
||||
raise TypeError(
|
||||
"'include_dirs' (if supplied) must be a list of strings")
|
||||
+ if 'PYINCDIRS' in os.environ:
|
||||
+ incdirs = os.environ['PYINCDIRS'].split(':')
|
||||
|
||||
if extra is None:
|
||||
extra = []
|
||||
@@ -456,6 +458,9 @@
|
||||
raise TypeError("'runtime_library_dirs' (if supplied) "
|
||||
"must be a list of strings")
|
||||
|
||||
+ if 'PYLIBS' in os.environ:
|
||||
+ library_dirs = os.environ['PYLIBS'].split(':')
|
||||
+
|
||||
return (libraries, library_dirs, runtime_library_dirs)
|
||||
|
||||
def _need_link(self, objects, output_file):
|
||||
52
patches/python3-makefile.patch
Normal file
52
patches/python3-makefile.patch
Normal file
@@ -0,0 +1,52 @@
|
||||
--- Makefile.orig 2016-02-23 19:36:13.488682264 +0100
|
||||
+++ Makefile 2016-02-23 19:49:55.755131424 +0100
|
||||
@@ -610,7 +610,7 @@
|
||||
*) quiet="";; \
|
||||
esac; \
|
||||
$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
|
||||
- _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
|
||||
+ _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' EXT_SUFFIX='$(EXT_SUFFIX)' \
|
||||
$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
|
||||
|
||||
# Build static library
|
||||
@@ -720,17 +720,19 @@
|
||||
############################################################################
|
||||
# Importlib
|
||||
|
||||
+FREEZE_IMPORTLIB ?= ./Programs/_freeze_importlib
|
||||
+
|
||||
Programs/_freeze_importlib.o: Programs/_freeze_importlib.c Makefile
|
||||
|
||||
Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
|
||||
$(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
|
||||
|
||||
Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib
|
||||
- ./Programs/_freeze_importlib \
|
||||
+ $(FREEZE_IMPORTLIB) \
|
||||
$(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h
|
||||
|
||||
Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib
|
||||
- ./Programs/_freeze_importlib \
|
||||
+ $(FREEZE_IMPORTLIB) \
|
||||
$(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
|
||||
|
||||
|
||||
@@ -797,9 +799,6 @@
|
||||
$(GRAMMAR_C): $(GRAMMAR_H)
|
||||
touch $(GRAMMAR_C)
|
||||
|
||||
-$(PGEN): $(PGENOBJS)
|
||||
- $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
||||
-
|
||||
Parser/grammar.o: $(srcdir)/Parser/grammar.c \
|
||||
$(srcdir)/Include/token.h \
|
||||
$(srcdir)/Include/grammar.h
|
||||
@@ -1606,7 +1605,7 @@
|
||||
rm -rf $(COVERAGE_REPORT)
|
||||
|
||||
clobber: clean profile-removal
|
||||
- -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
|
||||
+ -rm -f $(BUILDPYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
|
||||
tags TAGS \
|
||||
config.cache config.log pyconfig.h Modules/config.c
|
||||
-rm -rf build platform
|
||||
12
patches/python3-setup.patch
Normal file
12
patches/python3-setup.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- setup.py~ 2015-12-07 02:39:11.000000000 +0100
|
||||
+++ setup.py 2016-02-23 15:07:35.315758509 +0100
|
||||
@@ -367,7 +367,8 @@
|
||||
spec = importlib.util.spec_from_file_location(ext.name, ext_filename,
|
||||
loader=loader)
|
||||
try:
|
||||
- importlib._bootstrap._load(spec)
|
||||
+ # importlib._bootstrap._load(spec)
|
||||
+ aaaa = 1
|
||||
except ImportError as why:
|
||||
self.failed_on_import.append(ext.name)
|
||||
self.announce('*** WARNING: renaming "%s" since importing it'
|
||||
2
patches/python3.config.site
Normal file
2
patches/python3.config.site
Normal file
@@ -0,0 +1,2 @@
|
||||
ac_cv_file__dev_ptmx=yes
|
||||
ac_cv_file__dev_ptc=no
|
||||
Reference in New Issue
Block a user