-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tarball alea for later user installation (#215)
* Tarball alea for later user installation * Execute install.sh * Fix bugs * Fix bug * Fix bug of missing files
- Loading branch information
Showing
3 changed files
with
84 additions
and
35 deletions.
There are no files selected for viewing
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
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,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# List of packages | ||
packages=("alea") | ||
|
||
# Loop through each package | ||
for package in "${packages[@]}" | ||
do | ||
# Check if the tarball exists | ||
if [ ! -f "$package.tar.gz" ]; then | ||
echo "Tarball $package.tar.gz not found. Skipping $package." | ||
echo | ||
continue | ||
fi | ||
|
||
echo "Installing $package:" | ||
|
||
# Create a directory for the package | ||
mkdir -p $package | ||
|
||
# Extract the tarball to the package directory | ||
tar -xzf $package.tar.gz -C $package --strip-components=1 | ||
|
||
# Install the package in very quiet mode by -qq | ||
pip install ./$package --user --no-deps -qq | ||
|
||
# Verify the installation by importing the package | ||
python -c "import $package; print($package.__file__)" | ||
|
||
echo "$package installation complete." | ||
echo | ||
done |
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