-
Notifications
You must be signed in to change notification settings - Fork 13
Update for Local Development Python 3.9 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
91c7429
1) ManagedProperties metaclass is no longer used by Basic in sympy an…
Wholinator de34619
Sharing state between tests was failing them. Running pytest in termi…
Wholinator d751911
changed simplify to simplify_am, simplify was attempting to numerical…
Wholinator ec3f690
Nucleartest 'doit' disabled to allow execution of simplify without at…
Wholinator 87c2833
typo fixed
Wholinator cb75cca
install script
Wholinator 1bff968
Does my auth work now?
Wholinator 7dabc39
Install Folder including Install Script and Environment Conda Files
Wholinator b6eec6f
Professionalize the install script
Wholinator 1d67354
Readme Update
Wholinator 2e1483a
Install.sh must be in the root directory, if it's anywhere else the c…
Wholinator e42a484
filepaths
Wholinator 86e17d0
possible fix for conda issues. Conda says 'killed' when attempting to…
Wholinator cc5684f
add upgrade command to ensure latest conda
Wholinator cc3b15d
bash syntax error
Wholinator ecb197b
Altered final comment in bash script to match updated guidance for ru…
Wholinator c6c1b37
Submoduled Dummyspark
Wholinator 021c3e5
-yes
Wholinator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,3 +1,6 @@ | ||
| [submodule "deps/libcanon"] | ||
| path = deps/libcanon | ||
| url = https://github.com/tschijnmo/libcanon.git | ||
| [submodule "deps/DummyRDD"] | ||
| path = deps/DummyRDD | ||
| url = https://github.com/DrudgeCAS/DummyRDD |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,79 @@ | ||
| #!/bin/bash | ||
| # | ||
| # INSTRUCTIONS: | ||
| # 0) Check the ENV_NAME doesn't collide with previously defined environments | ||
| # - List current environments with `conda env list` | ||
| # 1) Run this With `source install_in.sh` | ||
| # | ||
|
|
||
| ENV_NAME=drudge | ||
|
|
||
| # Ensure latest conda installed | ||
| conda update -n base -c defaults conda -y | ||
|
|
||
| # Conda env creation | ||
| echo "Creating Conda Environment" | ||
| conda create --name $ENV_NAME python=3.9 -y | ||
| conda activate $ENV_NAME | ||
|
|
||
| # Choose the correct conda package list | ||
| if [[ "$(uname -m)" == "x86_64" ]]; then | ||
| # conda install --name $ENV_NAME --file install/env_x86.txt -y | ||
| conda install conda-forge::gcc==14.2.0 -y | ||
| conda install conda-forge::gxx_linux-64==14.2.0 -y | ||
| else | ||
| # echo "CONDA ENVIRONMENT FOR arm64 NOT YET VERIFIED" | ||
| # conda install --name $ENV_NAME --file install/env_arm.txt -y | ||
| echo "" | ||
| fi | ||
|
|
||
| conda install IPython==8.15.0 -y | ||
| conda install sympy==1.13.2 -y | ||
| conda install pyspark==3.4.1 -y | ||
| conda install jinja2 -y | ||
| conda install pytest -y | ||
| conda install coveralls -y | ||
|
|
||
| # Force Conda into Base, then into created environment | ||
| echo "Initializing Conda" | ||
| conda init | ||
| conda activate $ENV_NAME | ||
|
|
||
|
|
||
| # Clone repository | ||
| echo "Cloning Submodules" | ||
| git submodule update --init --recursive | ||
|
|
||
|
|
||
| # Setup Vars | ||
| echo "Setting env vars" | ||
| export PYTHONPATH=$(pwd) | ||
| export DUMMY_SPARK=1 | ||
|
|
||
| # Build cpp files | ||
| echo "Building cpp files" | ||
| python3 setup.py build | ||
| python3 setup.py install | ||
|
|
||
| # Copy the cpp files where needed | ||
| # echo "Moving cpp files" | ||
| # cp build/lib.linux-x86_64-cpython-39/drudge/wickcore.cpython-39-x86_64-linux-gnu.so drudge/ | ||
| # cp build/lib.linux-x86_64-cpython-39/drudge/canonpy.cpython-39-x86_64-linux-gnu.so drudge/ | ||
|
|
||
| # Add Dummy Spark | ||
| echo "Getting Dummy Spark" | ||
| git clone https://github.com/DrudgeCAS/DummyRDD ../dummyRDD/ | ||
|
|
||
| echo "Moving Dummy Spark" | ||
| cp -r ../dummyRDD/dummy_spark . | ||
|
|
||
| # Remove unneeded folder | ||
| rm -rf ../dummyRDD/ | ||
|
|
||
| echo "Installation Complete!" | ||
| echo "Assuming you ran this with '\''source'\'' you'\''re now inside the drudge folder. To get started using drudge you'll want to do 3 things after opening your chosen IDE to your code location:" | ||
| echo " 1) Ensure your Python Interpreter is set to the Conda Environment Python we just created" | ||
| echo " 2) Ensure this conda environment is activated with '\''conda activate drudge '\'' in the terminal which runs your program" | ||
| echo " 3) Set your pythonpath to the build directory of this repository like '\''export PYTHONPATH=\$PYTHONPATH:/path/to/drudge/build'\''" | ||
| echo " " | ||
| echo "Have Fun!" | ||
This file contains hidden or 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,6 @@ | ||
| IPython==8.15.0 | ||
| sympy==1.13.2 | ||
| pyspark==3.4.1 | ||
| jinja2 | ||
| pytest | ||
| coveralls |
This file contains hidden or 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,8 @@ | ||
| conda-forge::gcc==14.2.0 | ||
| conda-forge::gxx_linux-64==14.2.0 | ||
| IPython==8.15.0 | ||
| sympy==1.13.2 | ||
| pyspark==3.4.1 | ||
| jinja2 | ||
| pytest | ||
| coveralls |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we want to avoid installation of dummyRDD?
I agree that this can simplify things by reducing number of repos/packages to be installed, but it introduces another manual copy-paste. Either way is fine with me.