Skip to content

Commit

Permalink
fixup! add pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
thst-nordic committed Sep 21, 2023
1 parent 1165552 commit 60572b7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions scripts/compile-requirements.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
#!/usr/bin/env bash

#!/bin/bash

# Check if an argument is provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <path>"
echo "Usage: $0 <path for output file>"
exit 1
fi

# Store the path provided as the first argument
OUT_FILE="$1"

# Check if the path is absolute or relative
if [[ "$path" == /* ]]; then
if [[ "$OUT_FILE" == /* ]]; then
echo "Absolute path provided: $OUT_FILE"
else
echo "Relative path provided: $PWD/$OUT_FILE"
OUT_FILE="$PWD/$OUT_FILE"
fi

[ -z "$OUT_FILE" ] && echo "Error output file not provided" && exit 1
echo "Writing frozen requirements to: $OUT_FILE"
echo "Log python version: $(python --version)"

Expand All @@ -36,7 +32,6 @@ workon pip-fixed-venv > /dev/null 2>&1
pip3 install pip-tools > /dev/null 2>&1
pip3 install setuptools --upgrade


pip-compile --allow-unsafe --build-isolation --strip-extras \
--output-file $OUT_FILE \
--build-isolation \
Expand Down

0 comments on commit 60572b7

Please sign in to comment.