Debian Codegraph @

debian/patches/make-config-consistent.patch

raw symbols SCIP
1 Authorscip-debian debian scikit-misc 0.3.1+dfsg2-1 scikit-misc/patches/`make-config-consistent.patch`#Author.: Diane Trout <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Descriptionscip-debian debian scikit-misc 0.3.1+dfsg2-1 scikit-misc/patches/`make-config-consistent.patch`#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 Forwardedscip-debian debian scikit-misc 0.3.1+dfsg2-1 scikit-misc/patches/`make-config-consistent.patch`#Forwarded.: no
8
9 --- a/skmisc/__config__.py.inscip-debian debian scikit-misc 0.3.1+dfsg2-1 scikit-misc/upstream/`skmisc/__config__.py.in`:
10 +++ b/skmisc/__config__.py.inscip-debian debian scikit-misc 0.3.1+dfsg2-1 scikit-misc/upstream/`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 - "path": r"@PYTHON_PATH@",
25 - "version": "@PYTHON_VERSION@",
26 + "path": sys.executable,
27 + "version": sysconfig.get_config_var("py_version_short"),
28 },
29 }
30 )