shiv
shiv copied to clipboard
Error in shipping Django Zipapp
Following the Django zipapp walk through in the documentation here produces NotADirectoryError: [Errno 20] for Django 3.1
I have the same issue.
Is there any news about this ?
NotADirectoryError: [Errno 20] Not a directory: '/home/abdel/Projects/project/project.pyz/__main__.py'
No. The issue still persists!
I cannot reproduce the problem. The Django zipapp worked fine for me.
I started with a blank venv, activated the venv, installed Django, did django-admin startproject foo
, and then followed the docs.
The build.sh
file didn't work out of the box on macOS since cp -t
is not POSIX compatible (most likely a GNU-ism). But after fixing that, everything worked.
The Django zipapp docs page is quite sparse, incompatible with macOS, leaves out some bits, and assumes that you understand what you're doing... Indeed, it's not quite a walk-through; more of a strategy for how to do it. But that's not a problem with shiv itself.