Skip to content

Commit 93e46f6

Browse files
author
rob
committed
2 parents 229396e + 626bb21 commit 93e46f6

File tree

2 files changed

+37
-4
lines changed

2 files changed

+37
-4
lines changed

docs/installation.md

+36-3
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,20 @@ Now it's time to start setting up the venv. First check to see what is there
112112
(3.8.16) $ pip list
113113
```
114114

115-
You will probably be prompted to update pip at this time. Do whatever command it suggests
115+
You will probably be prompted to update pip at this time. Do whatever command it suggests.
116116

117-
Also install *wheel* and *cython*.
117+
Now install *wheel*
118118

119119
```
120-
(3.8.16) $ pip install wheel cython
120+
(3.8.16) $ pip install wheel
121+
```
122+
123+
### Linux, Windows, MacOS (Intel)
124+
125+
Install *cython*
126+
127+
```
128+
(3.8.16) $ pip install cython
121129
```
122130

123131
And now install the dependencies
@@ -126,6 +134,31 @@ And now install the dependencies
126134
(3.8.16) $ pip install -r requirements.txt
127135
```
128136

137+
### MacOS (ARM)
138+
139+
If you're running MacOS on one of the new ARM chips, the process is more complex. You'll need Homebrew and the Apple XCode Commandline Development Tools, configured for ARM. Doing that is beyond the scope of this document, type `homebrew apple xcode command line tools` into your favourite search engine. Once installed and configured, install *cython*:
140+
141+
```
142+
(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install cython --no-use-pep517
143+
```
144+
145+
Then the key dependencies
146+
147+
```
148+
(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install "numpy>=1.19.4,<1.24.0" --no-use-pep517
149+
(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install scipy --no-use-pep517
150+
(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install pandas==1.0.5 --no-use-pep517
151+
(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install statsmodels==0.12.2 --no-use-pep517
152+
```
153+
154+
Then the remaining dependencies
155+
156+
```
157+
(3.8.16) $ pip install -r requirements.txt
158+
```
159+
160+
### Check dependencies, all OSs
161+
129162
Check what is installed, should look something like
130163

131164
```

syscore/genutils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def str2Bool(x: str) -> bool:
104104
return x
105105
if x.lower() in ("t", "true"):
106106
return True
107-
if x.upper() in ("f", "false"):
107+
if x.lower() in ("f", "false"):
108108
return False
109109
raise Exception("%s can't be resolved as a bool" % x)
110110

0 commit comments

Comments
 (0)