Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 23 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@ target/
# Jupyter Notebook
.ipynb_checkpoints

# pyenv
*.python-version
*.pyc
# pyenv
*.python-version
*.pyc
__pycache__/
*.pyo
*.pyd

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
.venv/
venv/
ENV/
# virtualenv
.venv/
venv/
ENV/
.conda/
conda-meta/

# Spyder project settings
.spyderproject
Expand Down Expand Up @@ -76,9 +81,16 @@ ENV/
*.ppt
*.pptx

# Compressed files
*.zip
*.tar.gz
*.rar
# Compressed files
*.zip
*.tar.gz
*.rar

# Packaging artifacts
*.egg-info/
*.eggs/
build/
dist/
pip-wheel-metadata/

source/crystallization/
2 changes: 1 addition & 1 deletion doc/online_docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Installation

For installation, we recommend the use of conda environments to control packages dependencies and PharmaPy. A lighweight version of conda (`miniconda`_) is probably a good option for new users of the management system.

For PharmaPy installation, you must use the source code, which is available in our `Github repository`_. Once the source code is downloaded to the desired location, navigate (:code:`cd`) to the directory which contains the setup.py file. Then, follow the instructions on the :code:`installation_guide.txt`, to setup fresh conda environment and install PharmaPy and its dependencies.
For PharmaPy installation, you must use the source code, which is available in our `Github repository`_. Once the source code is downloaded to the desired location, navigate (:code:`cd`) to the directory which contains the setup.py file. Then, follow the instructions on the :code:`instal_instructions.txt`, to setup fresh conda environment and install PharmaPy and its dependencies.

..
make sure your conda environment is appropriately installed and activated, then input the following commands for PharmaPy installation:
Expand Down
26 changes: 16 additions & 10 deletions install_instructions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Step 4: After this step, both PharmaPy dependencies and PharmaPy itself should b

Step 5: Activate the new environment by doing: conda activate <name_of_environment> (exclude <>)

Step 6: Test PharmaPy by moving to the tests/ directory (cd tests) and then running: python reactor_tests.py
Step 6: Test PharmaPy by moving to the integration test directory and running:
cd tests/integration
python reactor_tests.py

# ---------- Manual installation ----------
Step 1: Create a conda environment named <env_name> (optional)
Expand Down Expand Up @@ -47,15 +49,19 @@ conda config -- show envs_dirs
step 1.1.2: Create a path
conda create --prefix <Directory address + /<env_name>>

Step 2: Install the package requirements in requirements.txt

conda install -c conda-forge --file requirements.txt

Step 3: Install PharmaPy; navigate to the source directory

python setup.py develop

Step 4: Check to see if the package is working by running a test in tests/
Step 2: Install the package requirements in requirements.txt

conda install -c conda-forge --file requirements.txt -y

Step 3: Install PharmaPy; navigate to the source directory

pip install -e .

Step 4: Check to see if the package is working

python -c "import PharmaPy; print('PharmaPy import OK')"
cd tests/integration
python reactor_tests.py



19 changes: 9 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
from setuptools import setup, find_packages, Extension
from setuptools import setup, find_packages

# Read the content of requirements.txt into a list
with open("requirements.txt", "r") as f:
requirements = f.read().splitlines()

setup(name='PharmaPy',
version='0.0.1',
packages=find_packages(),
author='Daniel Casas-Orozco',
author_email='dcasasor@purdue.edu',
license='',
url='',
py_modules=["PharmaPy"],
install_requires=requirements)
setup(name='PharmaPy',
version='0.0.1',
packages=find_packages(),
author='Daniel Casas-Orozco',
author_email='dcasasor@purdue.edu',
license='',
url='',
install_requires=requirements)