mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-07 03:40:14 +00:00
setup: pass INCLUDE_DIRS and LIBRARY_DIRS variables, if any to setup.py from Makefile
This commit is contained in:
parent
ae727a550a
commit
41cd3011ac
9
Makefile
9
Makefile
@ -9,6 +9,13 @@ OSSEP=$(shell python -c 'import os ; print os.sep')
|
|||||||
|
|
||||||
REACTOR=
|
REACTOR=
|
||||||
|
|
||||||
|
ifneq ($(INCLUDE_DIRS),)
|
||||||
|
INCLUDE_DIRS_ARG = -I$(INCLUDE_DIRS)
|
||||||
|
endif
|
||||||
|
ifneq ($(LIBRARY_DIRS),)
|
||||||
|
LIBRARY_DIRS_ARG = -L$(LIBRARY_DIRS)
|
||||||
|
endif
|
||||||
|
|
||||||
PLAT = $(strip $(shell python -c "import sys ; print sys.platform"))
|
PLAT = $(strip $(shell python -c "import sys ; print sys.platform"))
|
||||||
ifeq ($(PLAT),win32)
|
ifeq ($(PLAT),win32)
|
||||||
# The platform is Windows with cygwin build tools and the native Python interpreter.
|
# The platform is Windows with cygwin build tools and the native Python interpreter.
|
||||||
@ -67,7 +74,7 @@ make-version:
|
|||||||
touch .built
|
touch .built
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(PYTHON) ./setup.py build_ext -i
|
$(PYTHON) ./setup.py build_ext -i $(INCLUDE_DIRS_ARG) $(LIBRARY_DIRS_ARG)
|
||||||
chmod +x bin/tahoe
|
chmod +x bin/tahoe
|
||||||
|
|
||||||
# 'make install' will do the following:
|
# 'make install' will do the following:
|
||||||
|
2
README
2
README
@ -52,7 +52,7 @@ The Manual Dependencies:
|
|||||||
+ GNU make (build tool)
|
+ GNU make (build tool)
|
||||||
|
|
||||||
+ Python 2.4 or newer (tested against 2.4, and 2.5.1), including
|
+ Python 2.4 or newer (tested against 2.4, and 2.5.1), including
|
||||||
development headers (language)
|
development headers i.e. "Python.h" (language)
|
||||||
|
|
||||||
http://python.org/
|
http://python.org/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user