convenience target for creating venv that has LD_LIBRARY_PATH set already.

make clean
PYADPT-100
heck 3 years ago
parent d24ef6888e
commit 08d1a5b3b5

@ -22,27 +22,35 @@ dist-whl: compile
dist-egg: compile
python3 setup.py bdist_egg
# Installation
# ============
# installs the package system wide
install: compile
python3 setup.py install --force
pip3 install .
# installs the package into your user home
install-user: compile
python3 setup.py install --force --user
pip3 install . --user
clean: clean-docs
rm -r $(BUILD_DIR)
rm -r $(DIST_DIR)
rm -rf $(BUILD_DIR)
rm -rf $(DIST_DIR)
rm -rf $(PYTHON_ARTIFACTS)
rm -rf $(VERSION_FILE)
rm -rf $(BUILD_INPLACE)
# Creates an ad-hoc dev env using the compiled module
devenv:
# Envrionment
# ===========
# Creates and activates a new venv that has the LD_LIBRARY_PATH/DYLD_LIBRARY_PATH
# already set for the prefix specified in local.conf
# Only activates venv if already existing
venv:
python3 -m venv _venv
LD_LIBRARY_PATH=$(PREFIX)/lib \
DYLD_LIBRARY_PATH=$(PREFIX)/lib \
PYTHONPATH=`pwd`/build/lib.linux-x86_64-3.7:`pwd`/build/lib.macosx-10.9-x86_64-3.8: \
bash -l
bash --rcfile _venv/bin/activate
# Tests if the current environment is able to load the pEp module
envtest:
@ -54,5 +62,5 @@ envtest:
docs:
make html -C docs/
clean-docs
clean-docs:
make clean -C docs/

@ -3,6 +3,12 @@ HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
# Constants
BUILD_DIR = ./build
DIST_DIR = ./dist
VERSION_FILE = ./src/pEp/__version__.py
BUILD_INPLACE = ./src/pEp/_pEp.cpython-38-darwin.so
PYTHON_ARTIFACTS += ./.eggs
PYTHON_ARTIFACTS += ./src/pEp.egg-info
# Build config Defaults
DEBUG=0

Loading…
Cancel
Save