-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
65 additions
and
49 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 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 |
---|---|---|
@@ -1,27 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Build the installer for Linux. | ||
# This script is intended to be run from the root of the repository. | ||
|
||
PACKAGE_NAME="peptdeep" | ||
PACKAGE_VERSION="1.2.1" | ||
rm -rf dist | ||
rm -rf build | ||
|
||
ARCH=$(uname -m) | ||
if [ "$ARCH" == "x86_64" ]; then | ||
ARCH="x64" | ||
fi | ||
echo "ARCH=${ARCH}" >> $GITHUB_ENV | ||
|
||
KERNEL=$(uname -s | tr '[:upper:]' '[:lower:]') | ||
# Creating the wheel | ||
python setup.py sdist bdist_wheel | ||
|
||
BUILD_NAME="${PACKAGE_NAME}-${PACKAGE_VERSION}-${KERNEL}-${ARCH}" | ||
# Setting up the local package | ||
# Make sure you include the required extra packages and always use the stable or very-stable options! | ||
pip install "dist/peptdeep-1.2.1-py3-none-any.whl[stable]" | ||
|
||
# If needed, include additional source such as e.g.: | ||
# cp ../../peptdeep/data/*.fasta dist/peptdeep/data | ||
# WARNING: this probably does not work!!!! | ||
if [ "$1" != "GPU" ]; then | ||
pip install torch -U --extra-index-url https://download.pytorch.org/whl/cpu | ||
fi | ||
|
||
# Wrapping the pyinstaller folder in a .deb package | ||
mv dist/peptdeep dist/peptdeep.tmp | ||
mkdir -p dist/$BUILD_NAME/usr/local/bin | ||
mv dist/peptdeep.tmp dist/$BUILD_NAME/usr/local/bin/peptdeep | ||
mkdir dist/$BUILD_NAME/DEBIAN | ||
cp release/linux/control dist/$BUILD_NAME/DEBIAN | ||
dpkg-deb --build --root-owner-group dist/$BUILD_NAME/ | ||
# Creating the stand-alone pyinstaller folder | ||
pip install pyinstaller | ||
pyinstaller release/pyinstaller/peptdeep.spec -y |
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,29 @@ | ||
#!/bin/bash | ||
|
||
# Build the install package for Linux. | ||
# This script is intended to be run from the root of the repository after running build_installer_linux.sh | ||
|
||
PACKAGE_NAME="peptdeep" | ||
PACKAGE_VERSION="1.2.1" | ||
|
||
ARCH=$(uname -m) | ||
if [ "$ARCH" == "x86_64" ]; then | ||
ARCH="x64" | ||
fi | ||
echo "ARCH=${ARCH}" >> $GITHUB_ENV | ||
|
||
KERNEL=$(uname -s | tr '[:upper:]' '[:lower:]') | ||
|
||
BUILD_NAME="${PACKAGE_NAME}-${PACKAGE_VERSION}-${KERNEL}-${ARCH}" | ||
|
||
# If needed, include additional source such as e.g.: | ||
# cp ../../peptdeep/data/*.fasta dist/peptdeep/data | ||
# WARNING: this probably does not work!!!! | ||
|
||
# Wrapping the pyinstaller folder in a .deb package | ||
mv dist/peptdeep dist/peptdeep.tmp | ||
mkdir -p dist/$BUILD_NAME/usr/local/bin | ||
mv dist/peptdeep.tmp dist/$BUILD_NAME/usr/local/bin/peptdeep | ||
mkdir dist/$BUILD_NAME/DEBIAN | ||
cp release/linux/control dist/$BUILD_NAME/DEBIAN | ||
dpkg-deb --build --root-owner-group dist/$BUILD_NAME/ |
7 changes: 6 additions & 1 deletion
7
release/macos/build_backend_macos.sh → release/macos/build_installer_macos.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
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