bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h (#2477)
* bpo-29585: Fix PC/pyconfig.h whitespaces Run "make patchcheck". * bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h * site: Fix path separator in _get_path() on Windows
This commit is contained in:
parent
a8f8d5b4bd
commit
b01c574ad6
|
@ -266,7 +266,7 @@ def _get_path(userbase):
|
|||
version = sys.version_info
|
||||
|
||||
if os.name == 'nt':
|
||||
return f'{userbase}/Python{version[0]}{version[1]}/site-packages'
|
||||
return f'{userbase}\\Python{version[0]}{version[1]}\\site-packages'
|
||||
|
||||
if sys.platform == 'darwin' and sys._framework:
|
||||
return f'{userbase}/lib/python/site-packages'
|
||||
|
|
|
@ -690,4 +690,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
|
|||
/* Define to 1 if you have the `erfc' function. */
|
||||
#define HAVE_ERFC 1
|
||||
|
||||
/* framework name */
|
||||
#define PYTHONFRAMEWORK ""
|
||||
|
||||
#endif /* !Py_CONFIG_H */
|
||||
|
|
Loading…
Reference in New Issue