|
|
@ -397,7 +397,7 @@ lang_ext/lua/upb.so: lang_ext/lua/upb.c $(LIBUPB_PIC) |
|
|
|
|
|
|
|
|
|
|
|
# Python extension #############################################################
|
|
|
|
# Python extension #############################################################
|
|
|
|
|
|
|
|
|
|
|
|
PYTHON=python2.6-dbg
|
|
|
|
PYTHON=python
|
|
|
|
PYTHONEXT=lang_ext/python/build/install/lib/python/upb/__init__.so
|
|
|
|
PYTHONEXT=lang_ext/python/build/install/lib/python/upb/__init__.so
|
|
|
|
python: $(PYTHONEXT) |
|
|
|
python: $(PYTHONEXT) |
|
|
|
$(PYTHONEXT): $(LIBUPB_PIC) lang_ext/python/upb.c |
|
|
|
$(PYTHONEXT): $(LIBUPB_PIC) lang_ext/python/upb.c |
|
|
@ -405,4 +405,4 @@ $(PYTHONEXT): $(LIBUPB_PIC) lang_ext/python/upb.c |
|
|
|
$(Q) cd lang_ext/python && $(PYTHON) setup.py build --debug install --home=build/install
|
|
|
|
$(Q) cd lang_ext/python && $(PYTHON) setup.py build --debug install --home=build/install
|
|
|
|
|
|
|
|
|
|
|
|
pythontest: $(PYTHONEXT) |
|
|
|
pythontest: $(PYTHONEXT) |
|
|
|
cd lang_ext/python && cp test.py build/install/lib/python && valgrind $(PYTHON) ./build/install/lib/python/test.py
|
|
|
|
cd lang_ext/python && cp test.py build/install/lib/python && $(PYTHON) ./build/install/lib/python/test.py
|
|
|
|