avida-ed-library-build/docs/Avida-Ed-TestingNotes.txt

67 lines
2.6 KiB
Plaintext
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Avida-Ed-Testing Notes
Use once all is installed
start virtual environment.
————————————————————————————————————————————————————
Python virtual environment.
————————————————————————————————————————————————————
python --version to get default version which is Python 2.7.10
which python3 to get the path over version 3 of python
only do once to set up an virtual environment folder (we called it venv) had to use path
in the folder that holds venv type
virtualenv -p /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 venv
Running virtualenv with interpreter /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
to activate
<dBlackwood:~/_dev/avida-ed-testing > source venv/bin/activate
to get out
<dBlackwood:~/_dev/avida-ed-testing > deactivate
while virtual environment activated use the following command to install local packages.
Only need to do once when virtual environment is first set up.
<dBlackwood:~/_dev/avida-ed-testing > pip install -r requirements.txt
pip = python package installer
pip freeze lists the packages that are installed.
————————————————————————————————————————————————————
Python Virtual Environment 2017 August 25
————————————————————————————————————————————————————
virtualenv --version to check version of virtual environment.
docs.python-guide.org/en/latest/dev/virtualenvs
a place to get info
we need to specify which version of python.
virtualenv -p /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 venv
where venv is the folder for info on the virtual environment.
pip is the package manager
pip --help to get help on pip
pip install -r requirements.txt to load requirements.
There may be stuff in the requirements file that we really dont need.
————————————————————————————————
Actual Testing Notes
————————————————————————————————
to activate virtual environment
<dBlackwood:~/_dev/avida-ed-testing > source venv/bin/activate
then try
python tests/suite.py --setuipath ../av_ui
———————————
semantic ui as a package to help with Avida-ED 3