forked from pool/python-python-prctl
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-prctl?expand=0&rev=14
This commit is contained in:
20
dont-check-builddir.patch
Normal file
20
dont-check-builddir.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
@@ -22,15 +22,6 @@ except ImportError:
|
||||
curdir = os.path.dirname(__file__)
|
||||
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 \
|
||||
- not os.path.exists(os.path.join(builddir, 'prctl.py')) or \
|
||||
- not os.path.exists(os.path.join(builddir, '_prctl' + so)) or \
|
||||
- int(os.path.getmtime(os.path.join(curdir, 'prctl.py'))) > int(os.path.getmtime(os.path.join(builddir, 'prctl.py'))) or \
|
||||
- os.path.getmtime(os.path.join(curdir, '_prctlmodule.c')) > os.path.getmtime(os.path.join(builddir, '_prctl' + so)):
|
||||
- sys.stderr.write("Please build the extension first, using ./setup.py build\n")
|
||||
- sys.exit(1)
|
||||
-sys.path.insert(0, builddir)
|
||||
|
||||
import prctl
|
||||
import _prctl
|
Reference in New Issue
Block a user