* 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
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 \
|