Skip to content

Put all data into a sub-directory? #2702

@htgoebel

Description

@htgoebel
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    @lowkind:to be discussedPlease add our opionon and rationalpull-request wantedPlease submit a pull-request for this, maintainers will not actively work on this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions