From 96ee6f2448bd223e05d9c76236aad948f26efe00 Mon Sep 17 00:00:00 2001 From: Alfredos-Panagiotis Damkalis Date: Mon, 2 May 2022 20:14:01 +0300 Subject: [PATCH] Fix initial installation process Signed-off-by: Alfredos-Panagiotis Damkalis --- contrib/refresh-requirements.sh | 3 ++- pyproject.toml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/contrib/refresh-requirements.sh b/contrib/refresh-requirements.sh index e13947f..af594f4 100755 --- a/contrib/refresh-requirements.sh +++ b/contrib/refresh-requirements.sh @@ -21,6 +21,7 @@ EXCLUDE_REGEXP="^\\(pkg[-_]resources\\|satnogs-db\\)" COMPATIBLE_REGEXP="^\\(satnogs-decoders\\)" VIRTUALENV_DIR=$(mktemp -d) PIP_COMMAND="$VIRTUALENV_DIR/bin/pip" +PYTHON_VERSION="3.9" REQUIREMENTS=" comm grep @@ -45,7 +46,7 @@ if [ -n "$has_missing" ]; then fi # Create virtualenv -virtualenv "$VIRTUALENV_DIR" +virtualenv -p python$PYTHON_VERSION "$VIRTUALENV_DIR" # Install package with dependencies "$PIP_COMMAND" install --no-cache-dir --force-reinstall . diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d1e6ae6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[build-system] +requires = ["setuptools", "wheel"]