-
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.
Merge pull request #2 from gmum/fix_minor_issues
Update the link and external setup
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
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,13 @@ | ||
#!/bin/bash | ||
|
||
# Add the `external/` directory to `PYTHONPATH` when the environment is activated. | ||
mkdir -p $CONDA_PREFIX/etc/conda/activate.d | ||
echo "export PYTHONPATH=$PWD/external:.:$PYTHONPATH" >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh | ||
source $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh | ||
|
||
export GITHUB_NAME="$GITHUB_ORG_NAME/$GITHUB_REPO_NAME" | ||
export MODEL_DIR="external/$GITHUB_REPO_DIR" | ||
|
||
echo "Setting up $GITHUB_NAME under $MODEL_DIR" | ||
git -C external clone "git@github.com:$GITHUB_NAME.git" $GITHUB_REPO_DIR | ||
git -C $MODEL_DIR checkout $GITHUB_COMMIT_ID |
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,11 @@ | ||
#!/bin/bash | ||
|
||
# Install extra dependencies specific to Chemformer. | ||
pip install pytorch-lightning==1.9.4 git+https://github.com/MolecularAI/pysmilesutils.git | ||
|
||
export GITHUB_ORG_NAME=panpiort8 | ||
export GITHUB_REPO_NAME=syntheseus | ||
export GITHUB_REPO_DIR=syntheseus | ||
export GITHUB_COMMIT_ID=e5754963e4768ceada4fe7a60199bb1c5ceed2ea | ||
|
||
source external/setup_shared.sh |