File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,13 @@ def _print_config_dict(d, stream):
160160 print ("}" , file = stream )
161161
162162
163+ def _get_pybuilddir ():
164+ pybuilddir = f'build/lib.{ get_platform ()} -{ get_python_version ()} '
165+ if get_config_var ('Py_DEBUG' ):
166+ pybuilddir += '-pydebug'
167+ return pybuilddir
168+
169+
163170def _get_json_data_name ():
164171 name = _get_sysconfigdata_name ()
165172 assert name .startswith ('_sysconfigdata' )
@@ -213,7 +220,7 @@ def _generate_posix_vars():
213220 module .build_time_vars = vars
214221 sys .modules [name ] = module
215222
216- pybuilddir = f'build/lib. { get_platform () } - { get_python_version () } '
223+ pybuilddir = _get_pybuilddir ()
217224 os .makedirs (pybuilddir , exist_ok = True )
218225 destfile = os .path .join (pybuilddir , name + '.py' )
219226
You can’t perform that action at this time.
0 commit comments