Add venv and sdist targets.
epsi-builds/msspec_python3/pipeline/head This commit looks good
Details
epsi-builds/msspec_python3/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e801582beb
commit
3834f38aec
10
Makefile
10
Makefile
|
@ -1,6 +1,6 @@
|
||||||
include src/options.mk
|
include src/options.mk
|
||||||
|
|
||||||
PYTHON = python
|
PYTHON = python3
|
||||||
|
|
||||||
# Checking Python version
|
# Checking Python version
|
||||||
PYTHON_EXE := $(shell command -v $(PYTHON) 2> /dev/null)
|
PYTHON_EXE := $(shell command -v $(PYTHON) 2> /dev/null)
|
||||||
|
@ -17,11 +17,15 @@ ifneq ($(shell test $(PYTHON_VERSION_MAJOR) -ge 3 -a $(PYTHON_VERSION_MINOR) -ge
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
.PHONY: venv doc
|
.PHONY: pybinding venv doc
|
||||||
|
|
||||||
|
|
||||||
|
pybinding:
|
||||||
|
@+$(MAKE) -C src pybinding
|
||||||
|
|
||||||
|
|
||||||
venv:
|
venv:
|
||||||
virtualenv --python=python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR) --system-site-packages --prompt="(msspec-$(VERSION)) " venv
|
virtualenv --python=$(PYTHON_EXE) --prompt="(msspec-$(VERSION)) " venv
|
||||||
. ./venv/bin/activate && pip install --upgrade pip && pip install -r src/pip.freeze
|
. ./venv/bin/activate && pip install --upgrade pip && pip install -r src/pip.freeze
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
|
|
11
src/Makefile
11
src/Makefile
|
@ -1,6 +1,15 @@
|
||||||
include options.mk
|
include options.mk
|
||||||
|
|
||||||
.PHONY: pybinding results clean
|
.PHONY: sdist pybinding results clean
|
||||||
|
|
||||||
|
install: sdist
|
||||||
|
@echo "Installing msspec python package"
|
||||||
|
@pip install dist/msspec-*.tar.gz
|
||||||
|
|
||||||
|
sdist: pybinding
|
||||||
|
@echo "Creating Python source distribution..."
|
||||||
|
@python setup.py sdist
|
||||||
|
|
||||||
|
|
||||||
pybinding:
|
pybinding:
|
||||||
@echo "Building Python binding for phagen and spec..."
|
@echo "Building Python binding for phagen and spec..."
|
||||||
|
|
Loading…
Reference in New Issue