forked from pool/python-python-prctl
14 lines
591 B
Diff
14 lines
591 B
Diff
|
Index: python-prctl-1.8.1/test_prctl.py
|
||
|
===================================================================
|
||
|
--- python-prctl-1.8.1.orig/test_prctl.py
|
||
|
+++ python-prctl-1.8.1/test_prctl.py
|
||
|
@@ -20,7 +20,7 @@ except ImportError:
|
||
|
pass
|
||
|
|
||
|
curdir = os.path.dirname(__file__)
|
||
|
-builddir = os.path.join(curdir, 'build', 'lib.%s-%s' % (distutils.util.get_platform(), sys.version[0:3]))
|
||
|
+builddir = os.path.join(curdir, 'build', 'lib.%s-%s' % (distutils.util.get_platform(), '.'.join([str(x) for x in sys.version_info[:2]])))
|
||
|
|
||
|
# Always run from the builddir
|
||
|
if not os.path.exists(builddir) or \
|