pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/python



Module Name:    pkgsrc
Committed By:   joerg
Date:           Mon Jul  3 18:15:29 UTC 2017

Added Files:
        pkgsrc/lang/python: distutils-builddir.py

Log Message:
Add DISTUTILS_BUILDDIR_IN_TEST_ENV as flag to get the build directory
into PYTHONPATH for testing.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/python/distutils-builddir.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/python/distutils-builddir.py
diff -u /dev/null pkgsrc/lang/python/distutils-builddir.py:1.1
--- /dev/null   Mon Jul  3 18:15:29 2017
+++ pkgsrc/lang/python/distutils-builddir.py    Mon Jul  3 18:15:29 2017
@@ -0,0 +1,7 @@
+from os import getcwd
+from os.path import join
+from distutils.dist import Distribution
+from distutils.command.build import build
+b = build(Distribution())
+b.finalize_options()
+print(join(getcwd(), b.build_platlib))



Home | Main Index | Thread Index | Old Index