-
Notifications
You must be signed in to change notification settings - Fork 329
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
Python 2.6: ordereddict
from PyPI?
#124
Comments
I didn't add it to requirements.txt because I couldn't find a way to tell pip to install |
My original thought was that it was kind of "installed" for Python 2.7-3.6 users anyways (in the form I came across a few links while looking for solutions (I was googling "conditional dependencies python"):
EDIT: I haven't tested this yet but maybe something like this in def read_requirements(filename):
try:
with open(filename) as f:
result = f.read().splitlines()
except IOError:
raise IOError(os.getcwd())
else:
if sys.version_info < (2, 7):
result.append('ordereddict>=1.1')
return result |
@delirious-lettuce I think that works 👍. Feel free to create a pull request if you want to. Thanks a lot! |
Ok, sure. I'll be at my computer in maybe 45-60 minutes. I'll do a couple
tests and then submit that PR.
|
I was looking at Raymond Hettinger's script on ActiveState (in this repo as
ordereddict.py
) and noticed in the comments that it was available on PyPI. It seems to be an updated version of the original script.I guess I'm just wondering if it wouldn't be easier to just
pip install ordereddict
(by adding it torequirements.txt
)?The text was updated successfully, but these errors were encountered: