This repository was archived by the owner on May 29, 2020. It is now read-only.
Open
Conversation
Before this commit, attempted installation under Python 3 resulted in
```
$ pip install .
Processing /home/mambocab/cstar_src/ssl
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-i70f75bv-build/setup.py", line 33
print 'looking for', f
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
```
After it, attempted installation under Python 3 is the same as under
Python 2.6.0+:
```
$ pip install .
Processing /home/mambocab/cstar_src/ssl
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-149_ydsx-build/setup.py", line 14, in <module>
+ "or earlier.")
ValueError: This extension should not be used with Python 2.6 or later (already built in), and has not been tested with Python 2.3.4 or earlier.
----------------------------------------
```
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug: Unhelpful error on attempted install under Python 3.
Expected behavior: When attempting to install under Python 3, the user sees an error indicating they already have it installed. (Note that this happens, correctly, when attempting to install under Python 2.6+.)
Actual behavior:
setup.pyfails with aSyntaxError:We've had some users confused by this error, and it looks like you've recieved some erroneous error reports about it as well (#2, #7).
This PR brings installation behavior in line with the installation behavior under Python 2.6+: