zhuyifei1999 added a comment.

Compiled:

zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ PATH=`pwd`/.venv/bin:$PATH
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ wget 'https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz'
--2018-03-03 16:39:32--  https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
Resolving www.python.org (www.python.org)... 151.101.0.223, 151.101.64.223, 151.101.128.223, ...
Connecting to www.python.org (www.python.org)|151.101.0.223|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16992824 (16M) [application/octet-stream]
Saving to: ‘Python-3.6.4.tar.xz’

Python-3.6.4.tar.xz                 100%[==================================================================>]  16.21M   175KB/s    in 96s     

2018-03-03 16:41:08 (173 KB/s) - ‘Python-3.6.4.tar.xz’ saved [16992824/16992824]

zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ tar -xvf Python-3.6.4.tar.xz 
Python-3.6.4/
[...]
Python-3.6.4/Objects/typeslots.inc
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ TARGET=`pwd`/.venv.py36
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ cd Python-3.6.4/
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test/Python-3.6.4$ ./configure --prefix=$TARGET
checking build system type... x86_64-pc-linux-gnu
[...]
creating Makefile


If you want a release build with all stable optimizations active (PGO, etc),
please run ./configure --enable-optimizations


zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test/Python-3.6.4$ make
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes    -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers   -I. -I./Include    -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
[...]
fi
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test/Python-3.6.4$ make install 
Creating directory /home/zhuyifei1999/T185561test/.venv.py36/bin
[...]
Successfully installed pip-9.0.1 setuptools-28.8.0
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test/Python-3.6.4$ cd ..
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ ln -s .venv.py36 .venv
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ hash -r
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ which python3
/home/zhuyifei1999/T185561test/.venv/bin/python3
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ python3
Python 3.6.4 (default, Mar  3 2018, 16:51:42) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$

TASK DETAIL
https://phabricator.wikimedia.org/T185561

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: gerritbot, Dalba, Xqt, Zoranzoki21, zhuyifei1999, Aklapper, pywikibot-bugs-list, Dvorapa, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to