Skip to content

Commit

Permalink
make CentOS3/RHEL3 detection work on RHEL3
Browse files Browse the repository at this point in the history
see python-greenlet#4 (comment)

fixes issue 4
  • Loading branch information
schmir committed Feb 1, 2012
1 parent 84ad1bd commit 01c9e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# https://bitbucket.org/ambroff/greenlet/issue/11/segfault-on-openbsd-i386
# https://github.com/python-greenlet/greenlet/issues/4
if ((sys.platform == "openbsd4" and os.uname()[-1] == "i386")
or ".EL-i686-with-redhat-3." in platform.platform()):
or ("-with-redhat-3." in platform.platform() and platform.machine() == 'i686')):
os.environ["CFLAGS"] = ("%s %s" % (os.environ.get("CFLAGS", ""), "-Os")).lstrip()

try:
Expand Down

0 comments on commit 01c9e8a

Please sign in to comment.