-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
setup.py develop fails with some packages on Python3 #218
Comments
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): Tail end of the traceback is:
I guess it's no surprise that when #210 was changed, it created this regression. My initial instinct is to roll back the change that introduced the issue. I welcome alternative suggestions and especially welcome unit tests that capture these requirements. |
Original comment by davidoff (Bitbucket: davidoff, GitHub: davidoff): Can we special case python3 or Windows for this? The reasonning is that on windows the binary script must be open in binary. My initial naive approach breaks because in this part of the code, we still assume that the contents of scripts can only be text. On unix, this doesn't break because text mode files are not converted, handling binary equally. But then Python3 tells us bytes are is not text... Maybe we should call is_python_script() to choose the binary flag in the install_egg_scripts in develop command? I will experiment and issue a pull request. |
Originally reported by: alex_gaynor (Bitbucket: alex_gaynor, GitHub: Unknown)
Instructions for reproduction:
This appears to have been introduced with the 4.0.0 release. Upstream ticket that noticed this issue: https://bugs.launchpad.net/python-swiftclient/+bug/1326972
The text was updated successfully, but these errors were encountered: