>From 7eafa503ff84b00c7a7a81dbf8fb8541ce534c8b Mon Sep 17 00:00:00 2001 From: Philip Lorenz Date: Wed, 4 May 2011 12:33:32 +0200 Subject: [PATCH 6/6] Support DESTDIR parameter when installing and install Python.Runtime.dll and Python.Runtime.dll.config along with the clr extension into site-packages. --- Makefile | 3 ++- setup.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 62001e6..0a56582 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ UCS ?= $(shell $(PYTHON) -c "import sys; \ SITEPACKAGES = $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; \ print get_python_lib(plat_specific=1, standard_lib=0)") INSTALL=/usr/bin/install -m644 +DESTDIR ?= / # Determine host architecture if it was not specified by the user. ARCH ?= $(shell getconf LONG_BIT) @@ -185,7 +186,7 @@ run: python.exe $(RUNNER) python.exe install: all - $(PYTHON) setup.py install + $(PYTHON) setup.py install --root=$(DESTDIR) mkkey: $(SN) -k $(KEYFILE) diff --git a/setup.py b/setup.py index 0941be8..15f8d85 100755 --- a/setup.py +++ b/setup.py @@ -57,4 +57,6 @@ if os.name == "posix": setup(name="clr", ext_modules = extensions, scripts = ["src/monoclr/clrpython%s" % VERSION], + packages = [""], + package_data = { '': ["Python.Runtime.dll", "Python.Runtime.dll.config"] } ) \ No newline at end of file -- 1.7.5