Commit f4303a38 authored by David Johnson's avatar David Johnson

Continue to put off a real fix for python installdir...

parent 7cfac9ac
Pipeline #1935 failed with stage
......@@ -8,6 +8,8 @@ CLEANFILES = capnet/proto/capnet_cp_pb2.py
PROTOC = protoc
LIBBIT=$(shell echo "import sys ; print '\n'.join(sys.path);" | python | sed -n -r -e 's/^.*\/(lib[0-9]*)\/.*$$/\1/p' | uniq | sort | head -1)
#cap_proto_py = $(patsubst %.proto,%_pb2.py,$(notdir $(CAP_PROTO)))
capnet/proto/__init__.py:
......@@ -18,13 +20,13 @@ capnet/proto/capnet_cp_pb2.py: $(CAP_INTERFACE)
$(PROTOC) -I$(CAP_PROTO_INCLUDE) --python_out=capnet/proto $^
all-local: $(CAP_INTERFACE) $(BUILT_SOURCES)
PYTHONPATH=$(DESTDIR)$(prefix)/lib/python2.7/site-packages \
PYTHONPATH=$(DESTDIR)$(prefix)/$(LIBBIT)/python2.7/site-packages \
$(PYTHON) setup.py build \
--build-base $(shell readlink -f $(builddir))/build \
--verbose
install-exec-local:
mkdir -p $(DESTDIR)$(prefix)/lib/python2.7/site-packages
PYTHONPATH=$(DESTDIR)$(prefix)/lib/python2.7/site-packages \
mkdir -p $(DESTDIR)$(prefix)/$(LIBBIT)/python2.7/site-packages
PYTHONPATH=$(DESTDIR)$(prefix)/$(LIBBIT)/python2.7/site-packages \
$(PYTHON) setup.py install \
--prefix $(DESTDIR)$(prefix) \
--verbose
......
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