mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
README: Change venv to reference PKGTREE and list more pre-requisites (#149)
This commit is contained in:
parent
468553b3c5
commit
d807f2c45c
1 changed files with 13 additions and 6 deletions
19
README.md
19
README.md
|
@ -96,13 +96,14 @@ per the instructions above.
|
||||||
At the moment, this only works on POSIX (Linux, FreeBSD and similar) systems.
|
At the moment, this only works on POSIX (Linux, FreeBSD and similar) systems.
|
||||||
Windows and Mac users - you'll need to chip in with a script for your system.
|
Windows and Mac users - you'll need to chip in with a script for your system.
|
||||||
|
|
||||||
#### 1 - Install build prerequisites: six and random2
|
#### 1 - Install build prerequisites: six, random2 and pysol-cards
|
||||||
|
|
||||||
This is kind of stupid and maybe it can be fixed in the future, but for now:
|
This is kind of stupid and maybe it can be fixed in the future, but for now:
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install six
|
pip install six
|
||||||
pip install random2
|
pip install random2
|
||||||
|
pip install pysol-cards
|
||||||
```
|
```
|
||||||
|
|
||||||
You may want to use your OS distribution package system instead, for example:
|
You may want to use your OS distribution package system instead, for example:
|
||||||
|
@ -112,6 +113,12 @@ sudo apt-get install python-six
|
||||||
sudo apt-get install python-random2
|
sudo apt-get install python-random2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For Pillow compilation, libjpeg headers and libraries need to be available:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt-get install libjpeg-dev
|
||||||
|
```
|
||||||
|
|
||||||
#### 2 - Clone the source from version control
|
#### 2 - Clone the source from version control
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -122,10 +129,10 @@ cd PySolFC
|
||||||
#### 3 - Create your virtual environment.
|
#### 3 - Create your virtual environment.
|
||||||
|
|
||||||
```
|
```
|
||||||
PKGDIR=/usr/local/packages/PySolFC # or whatever
|
PKGTREE=/usr/local/packages/PySolFC # or whatever
|
||||||
export PKGDIR
|
export PKGTREE
|
||||||
mkdir -p "$PKGDIR"
|
mkdir -p "$PKGTREE"
|
||||||
( cd "$PKGDIR" && python -m venv ./env )
|
( cd "$PKGTREE" && python -m venv ./env )
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 4 - Run the install script
|
#### 4 - Run the install script
|
||||||
|
@ -139,7 +146,7 @@ mkdir -p "$PKGDIR"
|
||||||
#### 6 - Enjoy playing
|
#### 6 - Enjoy playing
|
||||||
|
|
||||||
```
|
```
|
||||||
"$PKGDIR"/env/bin/pysol.py
|
"$PKGTREE"/env/bin/pysol.py
|
||||||
```
|
```
|
||||||
|
|
||||||
## Alternate toolkit.
|
## Alternate toolkit.
|
||||||
|
|
Loading…
Add table
Reference in a new issue