python-memcached icon indicating copy to clipboard operation
python-memcached copied to clipboard

Please update setup setup.py for Python 3.5 and 3.6

Open fizwit opened this issue 8 years ago • 4 comments

fizwit avatar Apr 12 '17 17:04 fizwit

FYI, updating setuptools to version 35.0.2 resolved the install issue for me. This package should probably specify a minimum required version of setuptools to avoid being unable to install it.

mplanchard avatar May 26 '17 16:05 mplanchard

Confirmed, if you upgrade setuptools to a sufficiently high version, this issue is bypassed.

jasconius avatar Oct 04 '17 16:10 jasconius

Do you know how to specify a minimum version of setuptools? I'm not sure if it's worth it. Based on your report, it sounds like the newer version of setuptools is only needed for Python 3.5 and later? What's the error?

timgraham avatar Nov 01 '17 16:11 timgraham

In requirements.txt, which is parsed by setup.py, add setuptools>=35.0.2. It's been 5 months since I've had this problem, so I don't remember the exact error, but using a 3.5 virtual environment with a manually installed setuptools of less than 35 should consistently yield the problem. If I remember correctly, setup.py failed, and the package could not be installed.

If you wanted to specify the requirement only for Python 3.5 and up, you could add setuptools>=35.02;python_version>="3.4" to requirements.txt. See declaring platform specific dependencies in the setuptools docs.

mplanchard avatar Nov 05 '17 17:11 mplanchard