fedora-infra / kitchen

Useful snippets of python code
GNU Lesser General Public License v2.1
33 stars 17 forks source link

Fails to build on py3.5 #10

Closed pypingou closed 8 years ago

pypingou commented 9 years ago

Cf: http://koji.fedoraproject.org/koji/taskinfo?taskID=11792374

pypingou commented 9 years ago

I found that MAXFD has been removed in py 3.5: http://bugs.python.org/issue10838#msg240240

pypingou commented 9 years ago

We could re-define MAXFD to what is it in kitchen2/kitchen/pycompat27/subprocess/_subprocess.py:

try:
    MAXFD = os.sysconf("SC_OPEN_MAX")
except:
    MAXFD = 256
ralphbean commented 8 years ago

:+1: works for me.