summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-06-02 19:41:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-06-02 19:41:35 (GMT)
commitf5854148138280c69fdc9d350636dc2140d57753 (patch)
tree4224dbe169ff81f293c528cec44a7d698bf0418e /Modules/getpath.c
parentf86959d883af71856da9ba4de3f48104ec4d5770 (diff)
downloadcpython-f5854148138280c69fdc9d350636dc2140d57753.zip
cpython-f5854148138280c69fdc9d350636dc2140d57753.tar.gz
cpython-f5854148138280c69fdc9d350636dc2140d57753.tar.bz2
remove (hilarious) defaults for various constants getpath.c needs
Diffstat (limited to 'Modules/getpath.c')
-rw-r--r--Modules/getpath.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 03d292c..18deb60 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -101,25 +101,8 @@
#endif
-#ifndef VERSION
-#define VERSION "2.1"
-#endif
-
-#ifndef VPATH
-#define VPATH "."
-#endif
-
-#ifndef PREFIX
-# define PREFIX "/usr/local"
-#endif
-
-#ifndef EXEC_PREFIX
-#define EXEC_PREFIX PREFIX
-#endif
-
-#ifndef PYTHONPATH
-#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
- EXEC_PREFIX "/lib/python" VERSION "/lib-dynload"
+#if !defined(PREFIX) || !defined(EXEC_PREFIX) || !defined(VERSION) || !defined(VPATH)
+#error "PREFIX, EXEC_PREFIX, VERSION, and VPATH must be constant defined"
#endif
#ifndef LANDMARK