Commit a6d2a54e authored by Fred Drake's avatar Fred Drake

Move the distutils setup.py script to the usual location.

parent fef762d9
...@@ -39,25 +39,25 @@ default: build ...@@ -39,25 +39,25 @@ default: build
@echo @echo
build: build:
${PYTHON} "${BASE_DIR}/inst/setup.py" \ ${PYTHON} "${BASE_DIR}/setup.py" \
${DISTUTILS_OPTS} build ${BUILD_FLAGS} ${DISTUTILS_OPTS} build ${BUILD_FLAGS}
install: build install: build
${PYTHON} "${BASE_DIR}/inst/setup.py" ${DISTUTILS_OPTS} install \ ${PYTHON} "${BASE_DIR}/setup.py" ${DISTUTILS_OPTS} install \
--home="${PREFIX}" ${BUILD_FLAGS} ${INSTALL_FLAGS} --home="${PREFIX}" ${BUILD_FLAGS} ${INSTALL_FLAGS}
@echo @echo
@echo Zope binaries installed successfully. @echo Zope binaries installed successfully.
@echo Now run \'${PREFIX}/bin/mkzopeinstance\' @echo Now run \'${PREFIX}/bin/mkzopeinstance\'
instance: instance:
${PYTHON} "${BASE_DIR}/inst/setup.py" ${DISTUTILS_OPTS} build_ext -i ${PYTHON} "${BASE_DIR}/setup.py" ${DISTUTILS_OPTS} build_ext -i
${PYTHON} "${BASE_DIR}/bin/mkzopeinstance" . ${PYTHON} "${BASE_DIR}/bin/mkzopeinstance" .
# testinst makes an instance home in the build directory without asking # testinst makes an instance home in the build directory without asking
# any questions. this is useful when testing. instances made with # any questions. this is useful when testing. instances made with
# this can be removed via "make untestinst" # this can be removed via "make untestinst"
testinst: build testinst: build
${PYTHON} "${BASE_DIR}/inst/setup.py" ${DISTUTILS_OPTS} build_ext -i ${PYTHON} "${BASE_DIR}/setup.py" ${DISTUTILS_OPTS} build_ext -i
${PYTHON} "${BASE_DIR}/bin/mkzopeinstance" --user=admin:admin . ${PYTHON} "${BASE_DIR}/bin/mkzopeinstance" --user=admin:admin .
# remove the instance files made with testinst (w/ prejudice) # remove the instance files made with testinst (w/ prejudice)
......
...@@ -36,7 +36,7 @@ COPY=copy ...@@ -36,7 +36,7 @@ COPY=copy
default: build default: build
build: build:
$(PYTHON) "$(BASE_DIR)\inst\setup.py" \ $(PYTHON) "$(BASE_DIR)\setup.py" \
$(DISTUTILS_OPTS) build $(BUILD_FLAGS) $(DISTUTILS_OPTS) build $(BUILD_FLAGS)
@ echo. @ echo.
@ echo Zope built. Next, do 'nmake install' (or 'nmake instance' @ echo Zope built. Next, do 'nmake install' (or 'nmake instance'
...@@ -44,21 +44,21 @@ build: ...@@ -44,21 +44,21 @@ build:
@ echo. @ echo.
install: build install: build
$(PYTHON) "$(BASE_DIR)\inst\setup.py" $(DISTUTILS_OPTS) install \ $(PYTHON) "$(BASE_DIR)\setup.py" $(DISTUTILS_OPTS) install \
--prefix="$(PREFIX)" $(BUILD_FLAGS) $(INSTALL_FLAGS) --prefix="$(PREFIX)" $(BUILD_FLAGS) $(INSTALL_FLAGS)
@ echo. @ echo.
@ echo Zope binaries installed successfully. @ echo Zope binaries installed successfully.
@ echo Now run '$(PYTHON) $(PREFIX)\bin\mkzopeinstance' @ echo Now run '$(PYTHON) $(PREFIX)\bin\mkzopeinstance'
instance: build instance: build
$(PYTHON) "$(BASE_DIR)\inst\setup.py" $(DISTUTILS_OPTS) build_ext -i $(PYTHON) "$(BASE_DIR)\setup.py" $(DISTUTILS_OPTS) build_ext -i
$(PYTHON) "$(BASE_DIR)\bin\mkzopeinstance" . $(PYTHON) "$(BASE_DIR)\bin\mkzopeinstance" .
# testinst makes an instance home in the build directory without asking # testinst makes an instance home in the build directory without asking
# any questions. this is useful when testing. instances made with # any questions. this is useful when testing. instances made with
# this can be removed via "make untestinst" # this can be removed via "make untestinst"
testinst: build testinst: build
$(PYTHON) "$(BASE_DIR)\inst\setup.py" $(DISTUTILS_OPTS) build_ext -i $(PYTHON) "$(BASE_DIR)\setup.py" $(DISTUTILS_OPTS) build_ext -i
$(PYTHON) "$(BASE_DIR)\bin\mkzopeinstance" --user=admin:admin . $(PYTHON) "$(BASE_DIR)\bin\mkzopeinstance" --user=admin:admin .
# remove the instance files made with testinst (w/ prejudice) # remove the instance files made with testinst (w/ prejudice)
......
...@@ -173,7 +173,7 @@ class ZopeDistribution(distutils.core.Distribution): ...@@ -173,7 +173,7 @@ class ZopeDistribution(distutils.core.Distribution):
self.cmdclass["install_data"] = ZopeInstallData self.cmdclass["install_data"] = ZopeInstallData
# presumes this script lives in the 'inst' subdirectory of the base dir # presumes this script lives in the 'inst' subdirectory of the base dir
BASE_DIR=os.path.abspath(os.path.dirname(os.path.dirname(sys.argv[0]))) BASE_DIR=os.path.dirname(os.path.abspath(sys.argv[0]))
AUTHOR = 'Zope Corporation and Contributors' AUTHOR = 'Zope Corporation and Contributors'
EXTENSIONCLASS_ROOT = os.path.join(BASE_DIR, 'lib', 'Components', EXTENSIONCLASS_ROOT = os.path.join(BASE_DIR, 'lib', 'Components',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment