Last active
April 29, 2020 20:15
-
-
Save rstms/3bd133959cf71c396d26123cbb0ab500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed 's/^\(BIN = """#!\).*$/\1{SHEBANG}/;s/u(BIN)/u(BIN.replace("{SHEBANG}", sys.executable))/' |
Compatibility note: This assumes your system is unix-like and has sed
on the path.
Thanks for this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The install script for poetry (currently at v1.0.5) is not PEP394 compliant, which causes problems on various systems where running python scripts with the shebang
#!/usr/bin/env python
fails or is undesirable. There are a number of open issues and PRs in the poetry github repo addressing this, and I'm sure they'll get it sorted eventually.In the meantime, on systems where
#!/usr/bin/env python
would fail or use python2: (I'm looking at you, Debian buster)Use this command to install poetry using python3 on a such a system:
Security note: only do this kind of thing if you trust the author implicitly. A very sane thing to do would be:
Then examine fixit and satisfy yourself that it isn't doing anything evil, followed by: