@@ -1043,6 +1043,8 @@ def create_environment(home_dir, site_packages=False, clear=False,
1043
1043
1044
1044
install_activate (home_dir , bin_dir , prompt )
1045
1045
1046
+ install_python_config (home_dir , bin_dir , prompt )
1047
+
1046
1048
def path_locations (home_dir ):
1047
1049
"""Return the path locations for the environment (where libraries are,
1048
1050
where scripts go, etc)"""
@@ -1438,6 +1440,10 @@ def install_activate(home_dir, bin_dir, prompt=None):
1438
1440
files ['activate.csh' ] = ACTIVATE_CSH
1439
1441
1440
1442
files ['activate_this.py' ] = ACTIVATE_THIS
1443
+
1444
+ install_files (home_dir , bin_dir , prompt , files )
1445
+
1446
+ def install_files (home_dir , bin_dir , prompt , files ):
1441
1447
if hasattr (home_dir , 'decode' ):
1442
1448
home_dir = home_dir .decode (sys .getfilesystemencoding ())
1443
1449
vname = os .path .basename (home_dir )
@@ -1449,6 +1455,16 @@ def install_activate(home_dir, bin_dir, prompt=None):
1449
1455
content = content .replace ('__BIN_NAME__' , os .path .basename (bin_dir ))
1450
1456
writefile (os .path .join (bin_dir , name ), content )
1451
1457
1458
+ def install_python_config (home_dir , bin_dir , prompt = None ):
1459
+ home_dir = os .path .abspath (home_dir )
1460
+ if sys .platform == 'win32' or is_jython and os ._name == 'nt' :
1461
+ files = {}
1462
+ else :
1463
+ files = {'python-config' : PYTHON_CONFIG }
1464
+ install_files (home_dir , bin_dir , prompt , files )
1465
+ for name , content in files .items ():
1466
+ make_exe (os .path .join (bin_dir , name ))
1467
+
1452
1468
def install_distutils (home_dir ):
1453
1469
distutils_path = change_prefix (distutils .__path__ [0 ], home_dir )
1454
1470
mkdir (distutils_path )
@@ -2238,6 +2254,22 @@ def convert(s):
2238
2254
s3az+sj7eA0jfgPfeoN1
2239
2255
""" )
2240
2256
2257
+ ##file python-config
2258
+ PYTHON_CONFIG = convert ("""
2259
+ eJyFVFFvmzAQfvev8FpVBrXQ9jVSKqUd3dBYWiVt1aqKLAom8cQA2U4WpP34nW0IkKUtLxyc77vv
2260
+ vrvz8RdKn8LZw+MkosH0idJzSq/DKZ1OfgbwUdVqVRYI8d9VKRSWtWzNcmctmSorhTJR/sYpl2qt
2261
+ eC5xF5GURcaXCG3inKcUjko8xq+kEizjW3KGCduyxOs+eZHk65RJbef8zbyTLI+XYCE8eEieNg5M
2262
+ ViyvyAKhlGWYbbmif7ha0bWMl8xJypSNL92RCa8ELxS+ugJqvlQpE+IMHz3qcyN8IvHriVwc4RPs
2263
+ aH8slpvXi8V+3o8f8pf4v0peOMTzyCkUjLNSYP3mBe5UcF2DqtNovoaki5ASteWpz5xhYKD1siL7
2264
+ 9tVRuxwtoHQovweL2DZhVdsXH+orhUXclwWy8QwXpTK53j1T1RsmgMOul5oGtSbdxMIhT8FsHt5N
2265
+ iYvAA38+OIwQ5KKma3oMtGHkcbRl6nC1TJrQwtADEU1rm7829DBX0+YLYNzTey8EALVjPNa4zcyN
2266
+ dt21o9FRv58Ft+EzssnyQWx/aN8HCJ6DG3oQBajp+egPu+c1Y+52gDuhiBcSfLonq11PCiCOe2BG
2267
+ P4up8lhRWbGEZzwZP4g1cxc7lEG1DbHRIIf5B7OrWJE6tvEOubmNJt/mxPVllcNQN0PeaUNwsxwm
2268
+ 2j2sSrv2YKX/SaKddiNMwii87qWDclvH/GU+9A0Q/LiqNG/i5VYRcmrmvDt1jOM0xWrFsG3zOYQ1
2269
+ F+Kz/3JuJYUbD66PtzWsUJHXWjQIEAxzCXvVg5KrWLBUZxaxqHWdPVD/sOht7UPVm41tq7yv4d6e
2270
+ XEcBnX+fzIKvfaUG9fJCMqGcCy1rRHo6gUj3Eek1ahey19oonP64vZu1eT7tsMZw0T8AKOXE
2271
+ """ )
2272
+
2241
2273
if __name__ == '__main__' :
2242
2274
main ()
2243
2275
0 commit comments