Skip to content
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

Explicit Python version in scripts #1622

Merged
merged 1 commit into from
Sep 27, 2018

Conversation

adrienverge
Copy link
Contributor

Recent Linux distributions start defaulting to Python 3, and require
ambiguous scripts to be more explicit.
For example building for Fedora 30 (not released yet) fails with:

ERROR: ambiguous python shebang in /opt/couchdb/bin/couchup:
#!/usr/bin/env python. Change it to python3 (or python2) explicitly.

So this commit changes the four Python scripts to use python2.

Note: They seem to be Python-3-compatible, but I couldn't be sure. If
you know they are, please tell me, I'll change it to python3.

Recent Linux distributions start defaulting to Python 3, and require
ambiguous scripts to be more explicit.
For example building for Fedora 30 (not released yet) fails with:

    ERROR: ambiguous python shebang in /opt/couchdb/bin/couchup:
    #!/usr/bin/env python. Change it to python3 (or python2) explicitly.

So this commit changes the four Python scripts to use `python2`.

Note: They seem to be Python-3-compatible, but I couldn't be sure. If
you know they are, please tell me, I'll change it to `python3`.
adrienverge added a commit to adrienverge/copr-couchdb that referenced this pull request Sep 25, 2018
adrienverge added a commit to adrienverge/copr-couchdb that referenced this pull request Sep 25, 2018
Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, @adrienverge

@wohali
Copy link
Member

wohali commented Oct 22, 2018

@adrienverge I'm having to revert the change to dev/run for now because it has broken our build. See #1673 for the details.

Once @nickva 's PR lands, dev/run will have an explicit callout for python3 instead of python.

@adrienverge
Copy link
Contributor Author

@wohali thanks for letting me know!

I'm glad to ear that Python 3 support is on its way 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants