-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no build deps for packages that need numpy
- Loading branch information
Showing
5 changed files
with
43 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
numpy~=1.20.1 | ||
delta-spark~=1.1.0 | ||
ipython~=7.22.0 | ||
pyspark~=3.2.1 |
36 changes: 36 additions & 0 deletions
36
python/requirements/dbr104/install_non_dev_dependencies.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e # Exit on error | ||
[ -n "$DEBUG" ] && set -x # Enable debugging if DEBUG environment variable is set | ||
|
||
# This runs from the root of the repository | ||
ARM_REQ_FILE="$(pwd)/requirements/dbr104/dbr104_arm.txt" | ||
GENERIC_REQ_FILE="$(pwd)/requirements/dbr104/dbr104.txt" | ||
|
||
# Check necessary commands and files | ||
command -v pip >/dev/null 2>&1 || { echo >&2 "pip is required but it's not installed. Aborting."; exit 1; } | ||
[ -f "$ARM_REQ_FILE" ] || { echo >&2 "Required file $ARM_REQ_FILE not found. Aborting."; exit 1; } | ||
[ -f "$GENERIC_REQ_FILE" ] || { echo >&2 "Required file $GENERIC_REQ_FILE not found. Aborting."; exit 1; } | ||
|
||
# Get the architecture of the system | ||
sys_arch=$(uname -m) | ||
echo "System Architecture: $sys_arch" | ||
|
||
echo "Upgrading pip..." | ||
pip install --upgrade pip | ||
|
||
case "$sys_arch" in | ||
arm*) | ||
echo "ARM Architecture detected. Specific model: $sys_arch" | ||
echo "Installing ARM-specific dependencies..." | ||
pip install -r "$ARM_REQ_FILE" | ||
pip install --no-deps pandas~=1.2.4 | ||
pip install --no-deps pyarrow~=4.0.0 | ||
pip install --no-deps scipy~=1.6.2 | ||
;; | ||
*) | ||
echo "Non-ARM Architecture: $sys_arch" | ||
echo "Installing generic dependencies..." | ||
pip install -r "$GENERIC_REQ_FILE" | ||
;; | ||
esac |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters