-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eggs/Wheels have broken shebangs #168
Comments
Hi, thanks for opening an issue. I actually already ran into the same problem, investigated, and decided that I will not use wheels for the time being. In my opinion this is a bug in distutils. The PEP recommends to write I guess we can hardcode the executable in the setup script but I'm not sure how this might affect existing users. |
Sorry for the rant... but what do you think? Did you know about the Also I'm not able to find documentation on |
@snordhausen any update on this? IMHO the wheel spec sucks and should be changed so I'd rather not work around it. What do you think? |
@mriehl question for you based on this:
It does assume the use of pip or a similar installer but here's the deal - you can't install a wheel without pip or a similar tool to begin with. And pip already does a proper rewrite, I believe. Setuptools, however, does rewrite the shebang for wheel only. We have a bug how we package as the order of invocation of setup tools matters. However if you clean again and run |
So either we have to blow away |
I'm going to implement the following solution:
|
You're right,
That's true, but my point is that if I get the project sources and try to run the file (which should always work, IMHO) it won't run because the shebang is broken. So the app is broken unless I actually install it. |
Sounds good. |
fixes pybuilder#168, connected to pybuilder#168
fixes pybuilder#168, connected to pybuilder#168
fixes pybuilder#168, connected to pybuilder#168
… added an options line to this script (see pybuilder/pybuilder#168). version 0.1.2
For distribution on Pypi, I wanted to create both Eggs and Wheels with
The project includes a script in src/main/scripts with a shebang of #!/usr/bin/env python. In the "sdist", this shebang remains intact and it works fine when installed from Pypi.
In the Egg and the Wheel, there is a modified shebang that points to the Python interpreter in the virtual environment that I use for building. Consequently, these files do not work when installed via Pypi. The same thing happens when I call the auto-generated setup.py myself.
I was able to work around this issue (after some inspiration) by manually adding
into the setup.py, deleting the temporary files and then calling setup.py myself.
The text was updated successfully, but these errors were encountered: