[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-17 Thread STINNER Victor


Change by STINNER Victor :


--
versions: +Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 79c535796da4a1377364910e309b97e53c3e51ef by Miss Islington (bot) 
in branch '3.9':
bpo-42613: Fix freeze.py config directory (GH-23792) (GH-23817)
https://github.com/python/cpython/commit/79c535796da4a1377364910e309b97e53c3e51ef


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-17 Thread miss-islington


miss-islington  added the comment:


New changeset 829272e67bbd4b2cc76c01cd20265eb114b392a2 by Miss Islington (bot) 
in branch '3.8':
bpo-42613: Fix freeze.py config directory (GH-23792)
https://github.com/python/cpython/commit/829272e67bbd4b2cc76c01cd20265eb114b392a2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-17 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +22677
pull_request: https://github.com/python/cpython/pull/23817

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22678
pull_request: https://github.com/python/cpython/pull/23818

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:

I tested my fix with these commands:
---
./configure --with-platlibdir=lib64 --enable-shared --prefix /opt/py310 
CFLAGS="-O0"
make
make install
# move outside CPython source tree
cd

mkdir hello
cd hello
echo 'print("hello")' > hello.py

cp -R  ~/python/master/Tools/freeze/ .
LD_LIBRARY_PATH=/opt/py310/lib /opt/py310/bin/python3.10 freeze/freeze.py 
hello.py
---

Output:
---
$ LD_LIBRARY_PATH=/opt/py310/lib ./hello 
hello
---

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 1c653f17cb84d81df3a74ab0b42140d2bb68c5c4 by Victor Stinner in 
branch 'master':
bpo-42613: Fix freeze.py config directory (GH-23792)
https://github.com/python/cpython/commit/1c653f17cb84d81df3a74ab0b42140d2bb68c5c4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +22648
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23792

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:

There are better maintained alternatives:

* PyOxidizer
* pyInstaller
* bbFreeze
* py2exe
* cx_Freeze
* py2app
* etc.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:

Tools/freeze/freeze.py is broken for 4 years, since Python 3.6 which added 
sys.implementation._multiarch to the config directory in sysconfig:

commit 5553231b91e05cf93827b33a79aebe62c4370a09
Author: d...@ubuntu.com 
Date:   Tue Jun 14 08:55:19 2016 +0200

- Issue #23968: Rename the platform directory from plat-$(MACHDEP) to
  plat-$(PLATFORM_TRIPLET).
  Rename the config directory (LIBPL) from config-$(LDVERSION) to
  config-$(LDVERSION)-$(PLATFORM_TRIPLET).
  Install the platform specifc _sysconfigdata module into the platform
  directory and rename it to include the ABIFLAGS.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:

I found this issue while working on bpo-42591 which exported the missing 
Py_FrozenMain() symbol.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42613] freeze.py doesn't support sys.platlibdir different than lib nor multiarch

2020-12-10 Thread STINNER Victor


New submission from STINNER Victor :

Tools/freeze/freeze.py doesn't support config directory using multiarch nor 
directory using a sys.platlibdir different than "lib". In short, it doesn't 
work on Fedora 33 which uses:

/usr/lib64/python3.10/config-3.10-x86_64-linux-gnu/

It might be possible to copy/paste the code creating the config-xxx path from 
Lib/sysconfig.py to Tools/freeze/freeze.py, but I would prefer to reuse code if 
possible, to make the code more sustainable.

Maybe we can add a private function to get the path to the "config" directory.

Or even a public function.

--
components: Unicode
messages: 382821
nosy: ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: freeze.py doesn't support sys.platlibdir different than lib nor multiarch
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com