diff options
-rw-r--r-- | python/Makefile | 18 | ||||
-rw-r--r-- | python/py3/Setup | 4 |
2 files changed, 5 insertions, 17 deletions
diff --git a/python/Makefile b/python/Makefile index 0ed24be..272eac1 100644 --- a/python/Makefile +++ b/python/Makefile @@ -1,8 +1,8 @@ VERSION=2.7.17 VERSION3=3.8.0 -INSTALL_PATH=/home/fam/downloads/source/python/static_python/output -INSTALL_PATH3=/home/fam/downloads/source/python/static_python/output3 +INSTALL_PATH=`pwd`/../output2 +INSTALL_PATH3=pwd`/../output3 make: download echo "Create static python" @@ -19,7 +19,6 @@ download3: configure: echo "Configure" - #pushd `pwd` #dynamic #cd ./Python-$(VERSION); ./configure --enable-shared --prefix=$(INSTALL_PATH) #static @@ -28,42 +27,31 @@ configure: configure3: echo "Configure" - #pushd `pwd` #dynamic #cd ./Python-$(VERSION); ./configure --enable-shared --prefix=$(INSTALL_PATH) #static #cd ./Python-$(VERSION); ./configure CFLAGS="-fPIC" LDFLAGS="-static" --disable-shared --prefix=$(INSTALL_PATH) - #cd ./Python-$(VERSION3); ./configure LDFLAGS="-static -static-libgcc" CPPFLAGS="-fPIC -static" --disable-shared --prefix=$(INSTALL_PATH3) - cd ./Python-$(VERSION3); ./configure --prefix=$(INSTALL_PATH3) + cd ./Python-$(VERSION3); ./configure LDFLAGS="-static -static-libgcc" CPPFLAGS="-fPIC -static" --disable-shared --prefix=$(INSTALL_PATH3) compile: echo "Compile" - #pushd `pwd` - #cd ./Python-$(VERSION);make LDFLAGS="-static" LINKFORSHARED=" " - #cd ./Python-$(VERSION);make -j4 CFLAGS="-fPIC" LDFLAGS="-static" LINKFORSHARED=" " cd ./Python-$(VERSION);make -j4 compile3: echo "Compile" - #pushd `pwd` - #cd ./Python-$(VERSION);make LDFLAGS="-static" LINKFORSHARED=" " cd ./Python-$(VERSION3);make -j4 CFLAGS="-fPIC" LDFLAGS="-static" LINKFORSHARED=" " #cd ./Python-$(VERSION3);make -j4 install: echo "Install" - #ushd `pwd` mkdir -p $(INSTALL_PATH) #export PYTHONHOME=$(INSTALL_PATH) - #cd ./Python-$(VERSION);make install make LDFLAGS="-static" LINKFORSHARED=" " cd ./Python-$(VERSION);make install install3: echo "Install" - #ushd `pwd` mkdir -p $(INSTALL_PATH3) #export PYTHONHOME=$(INSTALL_PATH) - #cd ./Python-$(VERSION);make install make LDFLAGS="-static" LINKFORSHARED=" " cd ./Python-$(VERSION3);make install clean: diff --git a/python/py3/Setup b/python/py3/Setup index f817b57..e8565c4 100644 --- a/python/py3/Setup +++ b/python/py3/Setup @@ -181,7 +181,7 @@ _elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI #_pickle _pickle.c # pickle accelerator _datetime _datetimemodule.c # datetime accelerator _bisect _bisectmodule.c # Bisection algorithms -_heapq _heapqmodule.c # Heap queue algorithm +#_heapq _heapqmodule.c # Heap queue algorithm _asyncio _asynciomodule.c # Fast asyncio Future _json -I$(srcdir)/Include/internal -DPy_BUILD_CORE_BUILTIN _json.c # _json speedups _statistics _statisticsmodule.c # statistics accelerator @@ -327,7 +327,7 @@ _sha3 _sha3/sha3module.c # Helper module for various ascii-encoders -binascii binascii.c +#binascii binascii.c # Fred Drake's interface to the Python parser #parser parsermodule.c |