forked from pool/python-python-prctl
- Update to 1.8.1:
* No changelog. - Rebase all patches. - Add patch check-for-python310-correctly.patch: * Check for Python 3.10 correctly. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-prctl?expand=0&rev=9
This commit is contained in:
13
check-for-python310-correctly.patch
Normal file
13
check-for-python310-correctly.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
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 \
|
Reference in New Issue
Block a user