Modifications to build msspec-python3
- Makefile: using python -m venv to create the virtual environment - src/options.mk: set PYTHON to python3; add filters and rules to treat .f90 files - src/pip.freeze: add packages wheel and wxPython
This commit is contained in:
parent
5f19198dec
commit
f5a2b9779c
6
Makefile
6
Makefile
|
@ -10,8 +10,10 @@ pybinding:
|
||||||
|
|
||||||
venv:
|
venv:
|
||||||
ifeq ($(NO_VENV),0)
|
ifeq ($(NO_VENV),0)
|
||||||
@virtualenv --python=$(PYTHON_EXE) --prompt="(msspec-$(VERSION)) " $(VENV_PATH)
|
# @virtualenv --python=$(PYTHON_EXE) --prompt="(msspec-$(VERSION)) " $(VENV_PATH)
|
||||||
|
$(PYTHON) -m venv $(VENV_PATH)
|
||||||
$(INSIDE_VENV) python -m ensurepip --upgrade
|
$(INSIDE_VENV) python -m ensurepip --upgrade
|
||||||
|
$(INSIDE_VENV) pip install -r src/pip.freeze
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# wget https://bootstrap.pypa.io/get-pip.py && \
|
# wget https://bootstrap.pypa.io/get-pip.py && \
|
||||||
|
@ -24,7 +26,7 @@ endif
|
||||||
install: venv pybinding wx
|
install: venv pybinding wx
|
||||||
@+$(INSIDE_VENV) $(MAKE) -C src sdist
|
@+$(INSIDE_VENV) $(MAKE) -C src sdist
|
||||||
@+$(INSIDE_VENV) $(MAKE) -C src frontend
|
@+$(INSIDE_VENV) $(MAKE) -C src frontend
|
||||||
@+$(INSIDE_VENV) pip install src/dist/msspec-$(VERSION)*.whl
|
@+$(INSIDE_VENV) pip install --force-reinstall src/dist/msspec-$(VERSION)*.whl
|
||||||
@echo "Do not forget to check that $(INSTALL_PREFIX)/bin is set in your \$$PATH"
|
@echo "Do not forget to check that $(INSTALL_PREFIX)/bin is set in your \$$PATH"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
PYTHON = python
|
PYTHON = python3
|
||||||
PYMAJ = 3
|
PYMAJ = 3
|
||||||
PYMIN = 5
|
PYMIN = 5
|
||||||
|
|
||||||
|
|
|
@ -10,3 +10,5 @@ pycairo
|
||||||
scipy
|
scipy
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
terminaltables
|
terminaltables
|
||||||
|
wheel
|
||||||
|
wxPython
|
||||||
|
|
Loading…
Reference in New Issue