-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Put all data into a sub-directory? #2702
Copy link
Copy link
Closed
Labels
@lowkind:to be discussedPlease add our opionon and rationalPlease add our opionon and rationalpull-request wantedPlease submit a pull-request for this, maintainers will not actively work on this.Please submit a pull-request for this, maintainers will not actively work on this.
Description
rm -rf build/ dist/
echo "import pytz" > test.py
pyinstaller.py test.py --clean --name pytz
crashes with
8898 INFO: Building COLLECT because out00-COLLECT.toc is non existent
8898 INFO: Building COLLECT out00-COLLECT.toc
Traceback (most recent call last):
…
File "…/Python.framework/Versions/3.5/lib/python3.5/os.py", line 241, in makedirs
mkdir(name, mode)
NotADirectoryError: [Errno 20] Not a directory: '/private/tmp/pyinst/dist/pytz/pytz/zoneinfo'
This is caused by the executable having the same name as the data-directory (pytz). See #2697.
The only solution I can think about is to put all data into some sub-directory. Then the name of this sub-directory could be make configurable. I'm not clear in my mind about the implications of such a change.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@lowkind:to be discussedPlease add our opionon and rationalPlease add our opionon and rationalpull-request wantedPlease submit a pull-request for this, maintainers will not actively work on this.Please submit a pull-request for this, maintainers will not actively work on this.