36 COMPONENT_BUGDB= python-mod/ipython |
36 COMPONENT_BUGDB= python-mod/ipython |
37 |
37 |
38 TPNO= 9640 |
38 TPNO= 9640 |
39 |
39 |
40 # Syntax issues: not Python 3 ready. |
40 # Syntax issues: not Python 3 ready. |
41 PYTHON_VERSIONS = 2.7 2.6 |
41 PYTHON_VERSIONS = $(PYTHON2_VERSIONS) |
42 |
42 |
43 include $(WS_TOP)/make-rules/prep.mk |
43 include $(WS_TOP)/make-rules/prep.mk |
44 include $(WS_TOP)/make-rules/setup.py.mk |
44 include $(WS_TOP)/make-rules/setup.py.mk |
45 include $(WS_TOP)/make-rules/ips.mk |
45 include $(WS_TOP)/make-rules/ips.mk |
46 |
46 |
47 # Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones. |
|
48 COMPONENT_PRE_BUILD_ACTION = \ |
|
49 /usr/bin/find $(SOURCE_DIR) -name *.py \ |
|
50 -exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ; |
|
51 |
|
52 # Unpack the ipython man pages. |
47 # Unpack the ipython man pages. |
53 COMPONENT_POST_UNPACK_ACTION = \ |
48 COMPONENT_POST_UNPACK_ACTION = \ |
54 (cd $(SOURCE_DIR)/docs/man; /usr/bin/gunzip * ) |
49 (cd $(SOURCE_DIR)/docs/man; /usr/bin/gunzip * ) |
55 |
50 |
56 # common targets |
51 # Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones. |
|
52 COMPONENT_POST_INSTALL_ACTION = \ |
|
53 /usr/bin/find $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) -name *.py \ |
|
54 -exec $(GSED) -i -e 's|env python|python$(PYTHON_VERSION)|' "{}" \; ; |
|
55 |
57 build: $(BUILD_32) |
56 build: $(BUILD_32) |
58 |
57 |
59 install: $(INSTALL_32) |
58 install: $(INSTALL_32) |
60 |
59 |
61 test: $(NO_TESTS) |
60 test: $(NO_TESTS) |