summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-06-02 19:42:40 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-06-02 19:42:40 (GMT)
commit59ae8ec75fbfce4c76620639245318548b772edd (patch)
tree44c4c21f8f87c669ea84e0a0e85ea3ddaabdc31c /Modules/getpath.c
parente747dd89b6074ca98729e0cc8afdf8697d4e38e3 (diff)
parentf5854148138280c69fdc9d350636dc2140d57753 (diff)
downloadcpython-59ae8ec75fbfce4c76620639245318548b772edd.zip
cpython-59ae8ec75fbfce4c76620639245318548b772edd.tar.gz
cpython-59ae8ec75fbfce4c76620639245318548b772edd.tar.bz2
merge 3.5
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 30a0e99..65b47a3 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