8000 gh-110722: Add PYTHON_PRESITE to import a module before site.py is run by ambv · Pull Request #110769 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-110722: Add PYTHON_PRESITE to import a module before site.py is run #110769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 14, 2023
Prev Previous commit
Next Next commit
Only define the static function --with-pydebug
  • Loading branch information
ambv committed Oct 13, 2023
commit bebb594697228f2405999c670e66ad825ae440bf
2 changes: 2 additions & 0 deletions Python/pylifecycle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ pyinit_main_reconfigure(PyThreadState *tstate)
}


#ifdef Py_DEBUG
static void
run_presite(PyThreadState *tstate)
{
Expand All @@ -1102,6 +1103,7 @@ run_presite(PyThreadState *tstate)
}
}
}
#endif


static PyStatus
Expand Down
0