| 1 |
Author: Diane Trout <[email protected]> |
| 2 |
Description: Upstreams config includes the python version information |
| 3 |
for the python it was built with, which makes it harder for pybuild |
| 4 |
to merge the differen python libraries into the python3 directory. |
| 5 |
I modified it to return the information for the currently running |
| 6 |
interpreter, which should usually look like what it expects to see. |
| 7 |
Forwarded: no |
| 8 |
|
| 9 |
--- a/skmisc/__config__.py.in |
| 10 |
+++ b/skmisc/__config__.py.in |
| 11 |
@@ -1,6 +1,8 @@ |
| 12 |
# This file is generated by scikit-miscs's build process |
| 13 |
# It contains system_info results at the time of building this package. |
| 14 |
from enum import Enum |
| 15 |
+import sys |
| 16 |
+import sysconfig |
| 17 |
|
| 18 |
__all__ = ["show"] |
| 19 |
_built_with_meson = True |
| 20 |
@@ -82,8 +84,8 @@ |
| 21 |
"cross-compiled": bool("@CROSS_COMPILED@".lower().replace('false', '')), |
| 22 |
}, |
| 23 |
"Python Information": { |
| 24 |
|
| 25 |
|
| 26 |
+ "path": sys.executable, |
| 27 |
+ "version": sysconfig.get_config_var("py_version_short"), |
| 28 |
}, |
| 29 |
} |
| 30 |
) |