-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.jsx
586 lines (510 loc) · 28.7 KB
/
install.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
import React, { Component } from 'react';
import {Helmet} from "react-helmet"; // https://www.npmjs.com/package/react-helmet
import {Content, Link, Redirect, Separator, Alert, getLatestPatchVersion, metaKeywords, TestsDiv} from './common';
import {VersionSwitcherContainer, VersionSwitcher} from './versionswitcher';
import {NotFound} from './errors';
import {docs_versions, getDocsLink} from './docs';
import {Header, HeaderNavButton} from './header';
// NOTE: we do this to force a deep-copy
var docs_versions_reverse = JSON.parse(JSON.stringify(docs_versions)).reverse()
var versions_os = ["windows", "mac", "linux", "auto"]
var versions_py = ["python2", "python3"]
export class Install extends Component {
constructor(props) {
super(props);
this.state = {
hash: null,
};
this.refdeps = React.createRef();
this.refpip = React.createRef();
this.refconda = React.createRef();
this.refvenv = React.createRef();
this.refsource = React.createRef();
this.reftesting = React.createRef();
}
scrollToHash() {
var offsetTop = null;
var hash = this.state.hash
if (hash==='#dependencies') {
offsetTop = this.refdeps.current.offsetTop;
} else if (hash==='#pip') {
offsetTop = this.refpip.current.offsetTop;
} else if (hash==="#conda") {
offsetTop = this.refconda.current.offsetTop;
} else if (hash==="#venv") {
offsetTop = this.refvenv.current.offsetTop;
} else if (hash==='#source') {
offsetTop = this.refsource.current.offsetTop;
} else if (hash==='#testing') {
offsetTop = this.reftesting.current.offsetTop;
}
if (offsetTop) {
window.scrollTo(0,offsetTop-80);
}
}
componentDidUpdate() {
this.scrollToHash()
}
render() {
var version = this.props.match.params.version
var version_long = null
var version_short = null
if (this.props.location.hash !== this.state.hash) {
this.setState({hash: this.props.location.hash})
}
if (version==null) {
// then we'll display generic instructions
version = "latest";
// version = docs_versions[0]
} else if (version==='latest') {
// allow latest as the version in the URL, but show whatever is latest
// version = docs_versions[0]
version = "latest";
} else if (version==='1.0' || version==='legacy') {
// then redirect to the 1.0 page
return(<Redirect to="/1.0/download"/>)
}
// handle 2.1.0 vs 2.1 cases (we want the full version for the instructions, but short version for docs/internal links)
if (version === "latest") {
version_short = docs_versions[0]
version_long = getLatestPatchVersion(version_short, this.props.release_changelogs)
} else if ((version.match(/\./g) || []).length === 1){
// then we have the short version already (one .)
version_short = version
version_long = getLatestPatchVersion(version_short, this.props.release_changelogs)
} else if ((version.match(/\./g) || []).length === 2){
// then we have the long version (two .s)
version_long = version
version_short = version.slice(0, version.lastIndexOf("."))
} else {
return (<NotFound>Release version {version} not found, try the general <Link to="/install">download instructions</Link> or choose from one of the available <Link to="/releases">releases</Link>.</NotFound>)
}
if (version_short && docs_versions.indexOf(version_short) === -1){
// something not recognized, let's throw a page not found
return (<NotFound>Release version {version_short} not found, try the general <Link to="/install">download instructions</Link> or choose from one of the available <Link to="/releases">releases</Link>.</NotFound>)
}
/* http://www.javascripter.net/faq/operatin.htm */
var version_os = this.props.match.params.version_os || "auto"
var OSName="linux";
if (version_os === "auto") {
if (navigator.appVersion.indexOf("Win") !== -1) OSName="windows";
if (navigator.appVersion.indexOf("Mac") !== -1) OSName="mac";
// if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux") !== -1) OSName="linux";
} else {
OSName = version_os
}
var version_py = "python3"
var version_py_switcher = "python3"
if (this.props.match.params.version_py && this.props.match.params.version_py !== 'auto') {
version_py = this.props.match.params.version_py
version_py_switcher = version_py
} else if (["2.0", "2.1"].indexOf(version_short) !== -1) {
version_py = "python2"
version_py_switcher = "auto"
} else {
version_py_switcher = "auto"
}
var python = 'python'
var pip = 'pip'
if (version_py === 'python3') {
python = 'python3'
pip = 'pip3'
}
var show_instructions = true
if (version_py === 'python3' && version_short < 2.2) {
show_instructions = false
} else if (version_py === 'python2' && version_short >= 2.3) {
show_instructions = false
}
return (
<div>
<Helmet>
<title>PHOEBE | Download & Install</title>
<meta name="keywords" content={metaKeywords+", download, install"}/>
<meta name="description" content="Instructions for downloading and installing PHOEBE 2"/>
</Helmet>
<Header>
<h1>Download & Install PHOEBE {version === 'latest' ? version_short : version_long}</h1>
<div className="row">
<div className="col-md-2"></div>
<div className="col-md-2" style={{paddingLeft: "5px", paddingRight: "5px", paddingBottom: "5px"}}>
<HeaderNavButton title="From PIP" description="Install from PIP" to={"#pip"} icon="fab fa-python"/>
</div>
<div className="col-md-2" style={{paddingLeft: "5px", paddingRight: "5px", paddingBottom: "5px"}}>
<HeaderNavButton title="Conda Env" description="Setup in a Conda Environment" to={"#conda"} icon="fab fa-cuttlefish"/>
</div>
<div className="col-md-2" style={{paddingLeft: "5px", paddingRight: "5px", paddingBottom: "5px"}}>
<HeaderNavButton title="Virtual Env" description="Setup in a Virtual Environmnet" to={"#venv"} icon="fa fa-laptop-code"/>
</div>
<div className="col-md-2" style={{paddingLeft: "5px", paddingRight: "5px", paddingBottom: "5px"}}>
<HeaderNavButton title="From Source" description="Install from Source-Code" to={"#source"} icon="fa fa-code"/>
</div>
<div className="col-md-2" style={{paddingLeft: "5px", paddingRight: "5px", paddingBottom: "5px"}}>
<HeaderNavButton title="Testing" description="Testing" to={"#testing"} icon="fa fa-vial"/>
</div>
</div>
</Header>
<Content preventScrollTop={this.props.location.hash} paddingBottom="0px">
<div class="row" style={{paddingBottom: "20px"}}>
<div class="col-md-9 col-sm-12"></div>
<div class="col-md-3 col-sm-12 float-right">
<Link to={"http://github.com/phoebe-project/phoebe-project.org/issues/new?title=issue+with+install+instructions:+"+version_long+"/"+OSName+"/"+version_py} hideExternal={true}><span className="fas fa-fw fa-bug"></span> Issue/Question on this Page?</Link>
</div>
</div>
{version_short >= 2.3 ?
<Alert level='warning'>
<p><b>Note:</b> these instructions will install the Python PHOEBE package. The UI (optional) must be <Link to="/clients">installed separately</Link>.</p>
</Alert>
:
null
}
{version!=='latest' ?
<Alert level={version_short === docs_versions[0] ? "warning" : "danger"}>
<p><b>Warning:</b> these instructions will download and install the {version_long} version of PHOEBE. To download and install a different version, use the version switcher at the bottom-right of the page, choose and click install from the appropriate <Link to="/releases">release</Link>, or follow instructions to <Link to={"/install/latest/"+version_os+"/"+version_py}>install the latest version</Link>.</p>
</Alert>
:
null
}
{version_short < 2.2 && version_py==='python3' ?
<Alert level="danger">
<p>PHOEBE {version_short} only supports <Link to={"/install/"+version+"/"+version_os+"/python2"}>Python 2.7+</Link>. Support for Python 3 is supported for PHOEBE 2.2+.</p>
</Alert>
:
null
}
{version_short >= 2.3 && version_py==='python2' ?
<Alert level="danger">
<p>PHOEBE {version_short} only supports <Link to={"/install/"+version+"/"+version_os+"/python3"}>Python 2.6+</Link>. Support for Python 2 was removed as of the PHOEBE 2.3 release.</p>
</Alert>
:
null
}
{OSName === 'windows' ?
<Alert level="warning">
<p>If you're running Windows 10 and want to install PHOEBE in WSL (Windows Subsystem for Linux), follow the <Link to={"/install/"+version+"/linux/"+version_py}>Linux installation instructions</Link>.</p>
</Alert>
:
null
}
</Content>
{show_instructions ?
<div>
<Content>
<h2 ref={this.refdeps}><span className="fas fa-fw fa-xs fa-link"></span> Dependencies</h2>
{OSName === 'mac' ?
<div>
<p>
<b>Note for mac users</b>: it is suggested to use <Link to="https://joernhees.de/blog/2014/02/25/scientific-python-on-mac-os-x-10-9-with-homebrew/">homebrew</Link> or <Link to="#conda">conda</Link> to install a parallel version of {python} (and possibly compatible compilers).
PHOEBE has currently been tested to compile correctly using homebrew on El Capitan and Catalina.
</p>
</div>
:
null
}
{OSName === 'windows' ?
<div>
<p>
In order to install PHOEBE in windows natively, you'll need to first:
</p>
<ol>
<li>Install <Link to="https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170">Microsoft Visual C++ Redistributable</Link></li>
<li>Install the C++ "community" version of <Link to="https://visualstudio.microsoft.com/downloads/">Visual Studio 2022</Link>.</li>
<li>Install <Link to="https://code.visualstudio.com/docs/python/coding-pack-python">Coding Pack for Python</Link>.</li>
<li>Install <Link to="https://www.python.org/downloads/windows/">Python 3</Link>. Alternatively, consider installing anaconda or miniconda which include python and <Link to={"/install/"+version+"/"+version_os+"/python3#conda"}>install PHOEBE in a conda environment</Link>.</li>
</ol>
</div>
:
null
}
{version_py==="python2" ?
<p>PHOEBE {version_short} has been tested to build and run on python 2.7+ {version_short >= 2.2 ? <span>(<Link to={"/install/"+version+"/"+version_os+"/python3#source"}>or python 3.6+</Link>)</span> : <span>(but does not support python 3)</span>}. You can check your installed version of {python} with:</p>
:
<p>PHOEBE {version_short} has been tested to build and run on python {version_short < 2.4 ? "3.6+" : "3.7+"} {version_short === 2.2 ? (<Link to={"/install/"+version+"/"+version_os+"/python2#source"}>or python 2.7+</Link>) : null}. You can check your installed version of {python} with:</p>
}
<pre>
{python} --version
</pre>
{OSName !== 'windows' ?
<div>
<p>The C++ code in PHOEBE requires a compiler that supports C++11, <b>either</b> of the following should build correctly:</p>
<ul>
<li>g++ (g++-5 or newer)</li>
<li>clang (clang-3.3 or newer)</li>
</ul>
</div>
:
null
}
{OSName === 'linux' ?
<div>
<p>Note for <strong>Ubuntu 14.04 users</strong>: g++ is not installed by default. You’ll likely need to to do the following in order to install PHOEBE:</p>
<pre>
sudo add-apt-repository ppa:ubuntu-toolchain-r/test<br/>
sudo apt-get install g++-5 gcc-5 libstdc++-5-dev<br/>
export CXX=g++-5
</pre>
</div>
:
null
}
{OSName === 'mac' ?
<div>
<p>
On Catalina, the default system compiler may not work correctly. Updating XCode may be required (confirmed to work with XCode 12.4). If the compiler cannot find the XCode libraries, try adding it to the CPATH environment variable:
</p>
<pre>
export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include<br/>
</pre>
</div>
:
null
}
{OSName !== 'windows' ?
<p>Additionally, in order to build the C-sources, make sure you have Python.h headers for the correct version of {python}, by installing {python}-dev via your package manager.</p>
:
null
}
{OSName === 'linux' ?
<div>
<p>The following should work for debian-based systems (Ubuntu, etc):</p>
<pre>
sudo apt-get install {python}-dev
</pre>
<p>or for rpm-based systems (Fedora, etc):</p>
<pre>
yum install {python}-devel
</pre>
</div>
:
null
}
<Separator large={false} flip={false}/>
</Content>
<Content dark={true} preventScrollTop={this.props.location.hash}>
<h2 ref={this.refpip}><span className="fab fa-fw fa-xs fa-python"></span> Installing from PIP</h2>
<p>The simplest way to install PHOEBE is via <Link to="https://pypi.org/">pip</Link> (the python package manager).</p>
<p>If you are worried about conflicts with other packages or have multiple python installations, it may be worth installing PHOEBE using pip within a <Link to="#conda">conda environment</Link> or <Link to="#venv">virtual environment</Link>.</p>
<p>If you have multiple python and/or pip installations, it is important to make sure they point to the same version of {python}. You can check the installation of {python} corresponding to {pip} via <code>{pip} -V</code> or can replace all instances of <code>{pip}</code> below with <code>{python} -m pip</code>.</p>
{OSName === 'windows' ?
<div>
<p>If not installing within a full anaconda installation, windows users will need to install pyreadline:</p>
<pre>
{pip} install pyreadline
</pre>
</div>
:
null
}
<p>Since the build process requires numpy, we'll make sure that's installed first. {version!=='latest' ? "To install version "+version_long+" of PHOEBE" : 'To install the latest version of PHOEBE'}:</p>
<pre>
{pip} install numpy<br/>
{pip} install phoebe{version!=='latest' ? "=="+version_long : null}
</pre>
{version!=='latest' ?
<div>
<p>To upgrade/downgrade a previous installation to version {version_long}:</p>
<pre>
{pip} install -I phoebe=={version_long}
</pre>
</div>
:
<div>
<p>To update a previous installation to the <Link to="/releases/latest">latest release</Link>:</p>
<pre>
{pip} install -U phoebe
</pre>
</div>
}
<p>And to uninstall:</p>
<pre>
{pip} uninstall phoebe
</pre>
<p>Please check the version of PHOEBE you have installed to make sure you are using the corresponding version of the <Link to={getDocsLink(version_short, null, null)}>documentation</Link>. You can check the version once PHOEBE is installed via:</p>
<pre>
{python} -c "import phoebe; print(phoebe.__version__)"
</pre>
<Separator large={false} flip={true}/>
</Content>
<Content dark={false} preventScrollTop={this.props.location.hash}>
<h2 ref={this.refconda}><span className="fab fa-fw fa-xs fa-cuttlefish"></span> Conda Environments</h2>
<p>Conda environments allow having an isolated environment for phoebe, with its own installation of python, compilers, package dependencies, etc and avoid conflicts with other software you may have installed.</p>
<p>
Once you either have <Link to="https://www.anaconda.com/">anaconda</Link> or <Link to="https://docs.conda.io/en/latest/miniconda.html">miniconda</Link> installed and setup, you can create and activate an environment for PHOEBE:
</p>
<pre>
conda create -n name_of_phoebe_environment python={version_py === 'python3' ? (version_short < 2.4 ? "3.8" : "3.11") : 2.7 }<br/>
conda activate name_of_phoebe_environment
</pre>
<p>
(where you can set the name of environment and provide any supported version of python). {python==='python3' ? <span>Note that within the environment <code>python</code> (instead of <code>{python}</code>) will point to the version of python you specified.</span> : null }
</p>
{OSName === 'mac' ?
<div>
<p>
Conda environments also allow easily installing a supported compiler. For example, within the created environment you can install a compiler and link the XCode libraries before installing PHOEBE:
</p>
<pre>
export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include<br/>
conda install clangxx_osx-64 # or clang-12.0.0
</pre>
</div>
:
null
}
{OSName === 'windows' ?
<div>
<p>If using miniconda (instead of the full anaconda), windows users will also need to install pyreadline:</p>
<pre>
conda install pyreadline
</pre>
</div>
:
null
}
<p>
Now you can use pip (or <code>python -m pip</code>) to install PHOEBE {version_long} (or <Link to="#source">install from source</Link>):
</p>
<pre>
pip install numpy<br/>
pip install phoebe{version!=='latest' ? "=="+version_long : null}
</pre>
<p>
To leave the PHOEBE environment and return to the base environment:
</p>
<pre>
conda deactivate
</pre>
<p>
To setup a Jupyter notebook kernel for the PHOEBE environment, make sure Jupyter is installed in the <i>base environment</i>:
</p>
<pre>
conda install -c conda-forge notebook<br/>
conda install -c conda-forge nb_conda_kernels
</pre>
<p>
and then install a kernel within the PHOEBE environment:
</p>
<pre>
conda activate name_of_phoebe_environment<br/>
conda install -c anaconda ipykernel<br/>
python -m ipykernel install --user --name phoebe_env --display-name "PHOEBE env"
</pre>
<p>
Now you can launch Jupter notebook or Juyter lab from the base environment and "PHOEBE env" should show up in the choices of kernels.
</p>
<Separator large={false} flip={false}/>
</Content>
<Content dark={true} preventScrollTop={this.props.location.hash}>
<h2 ref={this.refvenv}><span className="fa fa-fw fa-xs fa-laptop-code"></span> Virtual Environments</h2>
<p>
To create and activate a virtual environment, do the following, replacing “<myphoebedir>” with your (perferably empty or not existing) directory of choice:
</p>
<pre>
{pip} install virtualenv<br/>
virtualenv <myphoebedir><br/>
source <myphoebedir>/bin/activate<br/>
</pre>
<p>
Now you can use {pip} (or <code>{python} -m pip</code>) to install PHOEBE {version_long} (or <Link to="#source">install from source</Link>):
</p>
<pre>
{pip} install numpy<br/>
{pip} install phoebe{version!=='latest' ? "=="+version_long : null}
</pre>
<p>To leave the virtual environment:</p>
<pre>
deactivate
</pre>
<p>And to destroy the virtual environment permanently:</p>
<pre>
rm -rf <myphoebedir>
</pre>
<p>If installing in a virtual environment, PHOEBE sets the matplotlib backend to ‘TkAgg’ instead of ‘Agg’ by default. To override this, set the backend yourself before importing PHOEBE. To use ‘TkAgg’, you may need to have python-tk installed on your system. See <Link to="http://matplotlib.org/faq/virtualenv_faq.html">http://matplotlib.org/faq/virtualenv_faq.html</Link> for more information.</p>
<Separator large={false} flip={true}/>
</Content>
<Content dark={false} preventScrollTop={this.props.location.hash}>
<h2 ref={this.refsource}><span className="fa fa-fw fa-xs fa-code"></span> Installing from Source</h2>
<h3>Download Source Code</h3>
<p>Download the archive version below and unpack the source-code:</p>
<ul>
<li><Link to={"https://github.com/phoebe-project/phoebe2/archive/"+version_long+".tar.gz"} hideExternal={true}><span className="far fa-file-archive"></span> PHOEBE.{version_long}.tar.gz</Link></li>
<li><Link to={"https://github.com/phoebe-project/phoebe2/archive/"+version_long+".zip"} hideExternal={true}><span className="fas fa-archive"></span> PHOEBE.{version_long}.zip</Link></li>
<li><Link to="/releases"><span className="fa fa-tags"></span> other releases</Link></li>
</ul>
<p>Or, to download via the <Link to="https://github.com/phoebe-project/phoebe2/">github repository</Link>, run:</p>
<pre>
git clone --depth=1 {version!=='latest' ? '-b "'+version_long+'"' : null} https://github.com/phoebe-project/phoebe2.git
</pre>
<p>Note: developers should exclude the depth=1 to get the entire git history (download size will be larger).</p>
<h3>Dependencies</h3>
<p>In addition to the <Link to="#dependencies">system dependencies</Link>, PHOEBE {version_short} requires the following {python} packages:</p>
<ul>
<li>numpy (1.10+)</li>
<li>scipy {version_short < 2.3 ? <span>(0.17+)</span> : <span>(1.2+)</span>}</li>
<li>astropy {version_py==="python2" ? <span>(1.0+ but not 3.0+ as that requires Python 3)</span> : <span>(1.0+)</span>}</li>
{version_short >= 2.4 ? <li>tqdm</li> : null}
{version_short >= 2.3 ? <li>requests</li> : null}
{version_short >= 2.3 ? <li>python-socketio[client]</li> : null}
{version_short >= 2.3 ? <li><b>required for phoebe-server</b>: flask, flask-cors, flask-socketio, gevent-websocket</li> : null}
</ul>
<p>And suggested packages (required for some optional but commonly used features):</p>
<ul>
<li>matplotlib (suggested for plotting)</li>
{version_short >= 2.3 ? <li>corner (for distribution plotting)</li> : null}
{version_short === 2.3 ? <li>tqdm (for progressbars)</li> : null}
{/* <li>sympy (for safer and more flexible constraints)</li> */}
</ul>
For more details, see <Link to="/dependencies">dependencies and built-in dependencies</Link>.
<h3>Installation</h3>
<p>To install without admin rights for a single-user:</p>
<pre>
{python} setup.py build<br/>
{python} setup.py install --user
</pre>
<p>or to install system-wide with admin rights:</p>
<pre>
{python} setup.py build<br/>
sudo {python} setup.py install
</pre>
{version_short >= 2.3 ?
<p>To install without the phoebe-server or phoebe-autofig scripts (i.e. if not using client-mode at all or installing on an HPC), set <code>PHOEBE_SKIP_SCRIPTS=TRUE</code> as an environment variable.</p>
:
null
}
<p>Please check the version of PHOEBE you have installed to make sure you are using the corresponding version of the <Link to={getDocsLink(version_short, null, null)}>documentation</Link>. You can check the version once PHOEBE is installed via:</p>
<pre>
{python} -c "import phoebe; print(phoebe.__version__)"
</pre>
<Separator large={false} flip={false}/>
</Content>
<Content dark={true} preventScrollTop={this.props.location.hash}>
<h2 ref={this.reftesting}><span className="fa fa-fw fa-xs fa-vial"></span> Running Pytests</h2>
<TestsDiv python={python} version_short={version_short}/>
<p>
For more information, read about <Link to="/contribute#testing">testing PHOEBE</Link> and <Link to="/contribute#issues">reporting issues and bugs</Link>.
If you run into issues, you can always <Link to="/help/contact/">reach out</Link>.
</p>
<div style={{height: "100px"}}>
</div>
</Content>
</div>
:
<div>
<h2 ref={this.refdeps}></h2>
<h2 ref={this.refpip}></h2>
<h2 ref={this.refconda}></h2>
<h2 ref={this.refvenv}></h2>
<h2 ref={this.refsource}></h2>
<h2 ref={this.reftesting}></h2>
</div>
}
<VersionSwitcherContainer>
<VersionSwitcher titleLong="Python:" titleShort="Py:" version={version_py.slice(-1)} versions={versions_py} versionLinks={versions_py.map(version_py => "/install/"+version+"/"+version_os+"/"+version_py)}/>
<VersionSwitcher titleLong="OS:" titleShort="OS:" version={version_os} versions={versions_os} versionLinks={versions_os.map(version_os => "/install/"+version+"/"+version_os+"/"+version_py_switcher)}/>
<VersionSwitcher titleLong="PHOEBE:" titleShort="PHOEBE:" version={version} versions={["1.0"].concat(docs_versions_reverse).concat("latest")} versionLinks={["/1.0/download"].concat(docs_versions_reverse.map(version => "/install/"+version+"/"+version_os+"/"+version_py_switcher)).concat("/install/latest/"+version_os+"/"+version_py_switcher)}/>
</VersionSwitcherContainer>
</div>
);
}
}