Skip to content

Commit b2b4e66

Browse files
committed
making the setup mention python3
1 parent 107cbdd commit b2b4e66

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

download/develop_install.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,16 @@ <h2 id="developer-installation">Developer Installation</h2>
153153
<li>This will copy the repo and take you to your fork, notice that your web-browser’s URL has changed to include your username.</li>
154154
<li>Now you can <a href="http://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository#Cloning-an-Existing-Repository">clone</a> your fork to your computer. Find the clone url of your fork on the right hand side of the page and copy it. You can use the https url. <br /> <img src="https://suave.stanford.edu/images/clone-example.png" alt="clone" height="90px" /></li>
155155
<li>Open a command prompt, in a directory that you want to start the repository (for example in the SUAVE_Project folder), and run the git clone command <br /> <code class="highlight_code">git clone &lt;git url&gt;</code> <br /> Now you should have the source code.</li>
156-
<li>Change directory into the trunk folder and run a developer installation command. <br /> <code class="highlight_code">python setup.py develop</code> <br /> Now you have a developer version of SUAVE installed! You can make changes to the source in this directory and the changes will appear the next time you run python, without having to rebuild or reinstall.</li>
156+
<li>Change directory into the trunk folder and run a developer installation command. <br /> <code class="highlight_code">python3 setup.py develop</code> <br /> Now you have a developer version of SUAVE installed! You can make changes to the source in this directory and the changes will appear the next time you run python, without having to rebuild or reinstall.</li>
157157
<li>Test the installation by changing to any other directory, then start a python shell, and run the command <br /> <code class="highlight_code">&gt;&gt;&gt; import SUAVE</code><br /><code class="highlight_code">&gt;&gt;&gt; print(SUAVE.__file__)</code><br /> This should print the file path to the SUAVE package init.py file in your trunk directory.</li>
158158
</ol>
159159

160160
<h4 id="some-notes">Some Notes</h4>
161161

162162
<ul>
163-
<li>You may need to run a sudo (super user do) command to install SUAVE when working on linux or mac systems: <code class="highlight_code">sudo python setup.py develop</code></li>
163+
<li>You may need to run a sudo (super user do) command to install SUAVE when working on linux or mac systems: <code class="highlight_code">sudo python3 setup.py develop</code></li>
164164
<li>The same strategies for dealing with write access can be used here, by simply replacing any <code class="highlight_code">install</code> keywords with <code class="highlight_code">develop</code></li>
165-
<li>To uninstall the developer version, run the command <code class="highlight_code">python setup.py develop --uninstall</code></li>
165+
<li>To uninstall the developer version, run the command <code class="highlight_code">python3 setup.py develop --uninstall</code></li>
166166
</ul>
167167

168168
<p><br /></p>

download/standard_install.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ <h3 id="simple-setup">Simple Setup</h3>
125125
<li>Download and extract the release archive</li>
126126
<li>Open the directory SUAVE/trunk</li>
127127
<li>Open a command prompt in that directory</li>
128-
<li>Run this command: <code class="highlight_code">python setup.py install</code> <br />
129-
If you are on a linux or mac, you may need to run <br /> <code class="highlight_code">sudo python setup.py install</code></li>
128+
<li>Run this command: <code class="highlight_code">python3 setup.py install</code> <br />
129+
If you are on a linux or mac, you may need to run <br /> <code class="highlight_code">sudo python3 setup.py install</code></li>
130130
<li>Change to any other folder, open a python shell, and test the new module with the command <code class="highlight_code">import SUAVE</code></li>
131131
</ol>
132132

@@ -176,7 +176,7 @@ <h3 id="dependencies">Dependencies</h3>
176176
</table>
177177

178178
<p><br />
179-
<strong>Note</strong>: For the windows installers, you can pick the latest version, for “cp2.7” (C-Python 3.6), for your architecture (32 or 64bit), and for numpy pick the MKL version (it’s faster). <br />
179+
<strong>Note</strong>: For the windows installers, you can pick the latest version, for Python 3.6, for your architecture (32 or 64bit), and for numpy pick the MKL version (it’s faster). <br />
180180
<strong>Note</strong>: The pip installer above will also install setuptools, a sub-dependency.</p>
181181

182182
<h3 id="dealing-with-write-access">Dealing with Write Access</h3>
@@ -186,7 +186,7 @@ <h3 id="dealing-with-write-access">Dealing with Write Access</h3>
186186
<h4 id="a-install-to-local-site-packages">A. Install to local site-packages</h4>
187187

188188
<p>This involves the user install option <br />
189-
<code class="highlight_code">python setup.py install --user</code></p>
189+
<code class="highlight_code">python3 setup.py install --user</code></p>
190190

191191
<h4 id="b-start-a-local-site-packages-folder">B. Start a local site-packages folder</h4>
192192

@@ -227,16 +227,16 @@ <h4 id="b-start-a-local-site-packages-folder">B. Start a local site-packages fol
227227
</li>
228228
<li>Now Install SUAVE <br />
229229
Using the example of the custom directoy ~/python-site-packages: <br />
230-
<code class="highlight_code">python setup.py install --prefix=~/python-site-packages</code></li>
230+
<code class="highlight_code">python3 setup.py install --prefix=~/python-site-packages</code></li>
231231
</ol>
232232

233233
<h3 id="additional-install-options">Additional Install Options</h3>
234234

235235
<p>Additional setup options, such as overriding the default install location, can be found with the following commands: <br />
236-
<code class="highlight_code">python setup.py install --help</code> <br />
237-
<code class="highlight_code">python setup.py uninstall --help</code> <br />
238-
<code class="highlight_code">python setup.py develop --help</code> <br />
239-
<code class="highlight_code">python setup.py --help</code></p>
236+
<code class="highlight_code">python3 setup.py install --help</code> <br />
237+
<code class="highlight_code">python3 setup.py uninstall --help</code> <br />
238+
<code class="highlight_code">python3 setup.py develop --help</code> <br />
239+
<code class="highlight_code">python3 setup.py --help</code></p>
240240

241241
<p><br /></p>
242242

@@ -249,7 +249,7 @@ <h4 id="un-installation-with-pip">Un-Installation with pip:</h4>
249249
<ol>
250250
<li>Navigate to the SUAVE/trunk directory by command line.</li>
251251
<li>Run the uninstall command. (On unix platforms, these commands may require a sudo (‘super-user-do’) call.) <br />
252-
<code class="highlight_code">python setup.py uninstall</code></li>
252+
<code class="highlight_code">python3 setup.py uninstall</code></li>
253253
</ol>
254254

255255
<h4 id="alternate-approach">Alternate Approach:</h4>
@@ -259,7 +259,7 @@ <h4 id="alternate-approach">Alternate Approach:</h4>
259259
<li>
260260
<p>Find your site-packages folder.
261261
Your site-packages folder is typically located in your python’s install directory, unless you manually created it. You can find it by using the following commands.<br />
262-
<code class="highlight_code">$ python </code> <br />
262+
<code class="highlight_code">$ python3 </code> <br />
263263
<code class="highlight_code">&gt;&gt;&gt; import site</code> <br />
264264
<code class="highlight_code">&gt;&gt;&gt; site.getsitepackages()</code></p>
265265
</li>

0 commit comments

Comments
 (0)