Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Sep 4, 2018
1 parent a8e4b4e commit df05c19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _doc/sphinxdoc/source/blog/2018/2018-08-19_python37.rst
Expand Up @@ -241,7 +241,6 @@
pip3.7 install torchvision chainer fcn
pip3.7 install spacy
pip3.7 install xlwt xlrd wikipedia pycurl xlsxwriter pyinstrument wptools flask dask bcolz
pip3.7 install jsonpickle forestci

For :epkg:`tables` :

Expand All @@ -265,6 +264,7 @@
pip3.7 install tpot pygal google-api-python-client datashader PyQt5
pip3.7 install pyecharts pygal-maps-fr pythreejs vega yahoo-historical lifelines fast-histogram geoplotlib
pip3.7 install missingno mpl-scatter-density mizani lml macropy3 plotnine geopy zarr
pip3.7 install jsonpickle forestci psycopg2

apt-get install libappindicator3-1
apt --fix-broken install
Expand Down
11 changes: 6 additions & 5 deletions src/pymyinstall/installcustom/install_custom_python.py
Expand Up @@ -232,7 +232,8 @@ def clean_err(err):
if err:
raise RuntimeError(
"Issue with running '{0}'\n--OUT--\n{1}\n--ERR--\n{2}".format(cmd, out, err))
config = os.path.join(temp_folder, "configure")
pyinstall = os.path.join(temp_folder, "Python-{0}.{1}.{2}".format(*versioni))
config = os.path.join(pyinstall, "configure")

cmd = "{0} --enable-optimizations --with-ensurepip=install --prefix={1}/inst --exec/prefix={1}/bin".format(
config, temp_folder)
Expand All @@ -241,14 +242,14 @@ def clean_err(err):
raise RuntimeError(
"Issue with running '{0}'\n--OUT--\n{1}\n--ERR--\n{2}".format(cmd, out, err))

cmd = "{0}/make".format(temp_folder)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG)
cmd = "{0}/make".format(pyinstall)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, change_path=pyinstall)
if err:
raise RuntimeError(
"Issue with running '{0}'\n--OUT--\n{1}\n--ERR--\n{2}".format(cmd, out, err))

cmd = "{0}/make altinstall".format(temp_folder)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG)
cmd = "{0}/make altinstall".format(pyinstall)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, change_path=pyinstall)
if err:
raise RuntimeError(
"Issue with running '{0}'\n--OUT--\n{1}\n--ERR--\n{2}".format(cmd, out, err))
Expand Down

0 comments on commit df05c19

Please sign in to comment.