-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update python test and support to newest versions
streamline py2app mac installation instructions
- Loading branch information
Showing
3 changed files
with
9 additions
and
20 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 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 |
---|---|---|
|
@@ -83,18 +83,14 @@ If you run into any problems, don't hesitate to use the `Issue tracker <https:// | |
.. contents:: | ||
:local: | ||
|
||
Virtual Environment | ||
Virtual Environment (For Linux/MacOS) | ||
------------------- | ||
If you need system packages that conflict with the packages required for RDPlot, you can use a python virtual environment (see below). | ||
|
||
When you are inside a virtual environment, python ignores all system packages and instead uses a dedicated environment, allowing you to install packages with pip that would otherwise conflict with system packages and/or different versions. The pitfall is that you need to activate the environment each time you want to use the program. | ||
|
||
You can find more info on virtual environments at https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/. | ||
|
||
venv is included in python since version 3.3. If your python version is older consider upgrading, or install venv using:: | ||
|
||
sudo pip install virtualenv | ||
|
||
Download RDPlot. Make sure you do this at a place where it can stay:: | ||
|
||
git clone https://github.com/IENT/RDPlot | ||
|
@@ -129,28 +125,21 @@ To uninstall, simply delete the RDPlot directory. | |
|
||
Mac OS X | ||
-------- | ||
**Note:** things are not tested for Mac. You may have to fiddle a little bit. | ||
Please contribute, if you have ideas for improvements. | ||
**Note:** It is recommended to also install the required packages in a virtualenvironment. For further information see above. | ||
|
||
First of all you need to install python3. | ||
You can get it `here | ||
<https://www.python.org/downloads/>`_. | ||
If you are using Homebrew you can alternatively install python3 via console:: | ||
|
||
brew install [email protected] | ||
|
||
Moreover, install all the requirements:: | ||
|
||
cd src/rdplot | ||
pip3 install -r requirements.txt | ||
brew install [email protected] | ||
|
||
Additionally install py2app:: | ||
Moreover, install all the requirements, GitPython and py2app:: | ||
|
||
pip3 install py2app | ||
pip3 install --upgrade pip -r src/rdplot/requirements.txt gitpython py2app | ||
|
||
Then navigate back to the top level and build an app in alias mode:: | ||
Then build the app in alias mode:: | ||
|
||
cd ../.. | ||
python3 setup.py py2app -A | ||
|
||
Now you should have an app in the dist folder. | ||
|
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