Skip to content

Commit 4b6dab4

Browse files
committed
Minimal change to support python3.
1 parent ed6aabb commit 4b6dab4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

python.make

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ python-help:
6262
@echo " python-% - install the pip module which called %";
6363
@echo " python-freeze - save installed pip modules in requirements.txt";
6464
@echo " python-module M - generate boilerplate files for new module M";
65+
@echo ""
66+
@echo " python3-runtime - bootstrap python3 virtualenv runtime environment";
67+
@echo "";
6568
@echo "";
6669
@echo "The virtualenv (v$(VIRTUALENV_VERSION)) runtime environment is located at this path:";
6770
@echo " $(PYTHON_RUNTIME_DIR)";
@@ -75,6 +78,10 @@ python-destroy:
7578
python-shell: python-runtime
7679
. $(PYTHON_RUNTIME_DIR)/bin/activate; python;
7780

81+
.PHONY: python3-runtime
82+
python3-runtime:
83+
$(MAKE) VIRTUALENV_OPTS=--python=python3 python-runtime
84+
7885
.PHONY: python-runtime
7986
python-runtime: $(PYTHON_RUNTIME_DIR)/bin/python
8087

0 commit comments

Comments
 (0)