From e46aa9cff6f2cebacb62c3f8f7df778eab8ad4f5 Mon Sep 17 00:00:00 2001 From: Dexter Chua Date: Sat, 9 Jan 2021 00:29:52 +0800 Subject: [PATCH] BLD Remove sitecustomize (#1072) --- Makefile | 2 -- src/sitecustomize.py | 9 --------- 2 files changed, 11 deletions(-) delete mode 100644 src/sitecustomize.py diff --git a/Makefile b/Makefile index eaed9a7d9..fdf136256 100644 --- a/Makefile +++ b/Makefile @@ -152,7 +152,6 @@ $(UGLIFYJS) $(LESSC): emsdk/emsdk/.complete root/.built: \ $(CPYTHONLIB) \ - src/sitecustomize.py \ src/webbrowser.py \ $(wildcard src/pyodide-py/pyodide/*.py) \ cpython/remove_modules.txt @@ -160,7 +159,6 @@ root/.built: \ mkdir -p root/lib cp -r $(CPYTHONLIB) root/lib mkdir -p $(SITEPACKAGES) - cp src/sitecustomize.py $(SITEPACKAGES) cp src/webbrowser.py root/lib/python$(PYMINOR) cp src/_testcapi.py root/lib/python$(PYMINOR) cp src/pystone.py root/lib/python$(PYMINOR) diff --git a/src/sitecustomize.py b/src/sitecustomize.py deleted file mode 100644 index 746ac6759..000000000 --- a/src/sitecustomize.py +++ /dev/null @@ -1,9 +0,0 @@ -""" -Pyodide-specific startup code that's always run at Python startup. -""" - -# We weren't invoked at the commandline, but set some commandline arguments as -# if we were anyway. Helps many of the CPython tests pass. -import sys - -sys.argv = ["pyodide"]