Boston Python workshop 2/Friday setup/Mac project dependencies: Difference between revisions

Content added Content deleted
imported>Jesstess
(Created page with '==ColorWall== ===Download the ColorWall project=== You'll be writing graphical effects for an existing ColorWall project. Download this ColorWall code and example effects so yo…')
 
imported>Jesstess
No edit summary
Line 50: Line 50:
===Test the Wordplay code===
===Test the Wordplay code===


Start a command prompt and navigate to the Desktop/Wordplay directory where the Wordplay code lives. For example, if the Wordplay project is at <code>C:\Users\jesstess\Desktop\Wordplay</code>,
Start a command prompt and navigate to the Desktop/Wordplay directory where the Wordplay code lives. For example, if the Wordplay project is at <code>/Users/jesstess/Desktop/Wordplay</code>,


<pre>
<pre>
C:\Users\jesstess\Desktop\Wordplay
cd /Users/jesstess/Desktop/Wordplay
</pre>
</pre>


Line 59: Line 59:


<pre>
<pre>
ls
dir
</pre>
</pre>


Line 79: Line 79:


<ol>
<ol>
<li>Click and save these four dependencies to your Downloads directory:
<li>Click and save these four dependencies to your Desktop:


* http://mit.edu/jesstess/www/BostonPythonWorkshop2/Twitter/httplib2-0.6.0.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop2/Twitter/httplib2-0.6.0.zip
Line 87: Line 87:
</li>
</li>
<li>
<li>
The ".zip" extension on the above files indicates that they are compressed Zip archives. We need to "extract" their contents. To do this, click on "Start", then "Computer", and navigate to your Downloads directory. For each of the 4 zip files, click on the file and click the "Extract all files" button to extract the contents. This will create a directory for each file, containing the source code for the dependency.
The ".zip" extension on the above files indicates that they are compressed Zip archives. We need to "extract" their contents. To do this, double-click on each file. This will create a directory for each file, containing the source code for the dependency.
</li>
</li>
</ol>
</ol>
Line 93: Line 93:
===Install the Twitter project dependencies===
===Install the Twitter project dependencies===


Each of these 4 dependencies has an installer script that we'll need to run at a command prompt to install the software. For each project, start a command prompt and navigate to the Downloads directory where the source code lives. For example, if the httplib2-0.6.0 project was extracted to C:\Users\jesstess\Downloads\httplib2-0.6.0,
Each of these 4 dependencies has an installer script that we'll need to run at a command prompt to install the software. For each project, start a command prompt and navigate to the Desktop directory where the source code lives. For example, if the httplib2-0.6.0 project was extracted to /Users/jesstess/Desktop/Twitter/httplib2-0.6.0,


<pre>
<pre>
cd C:\Users\jesstess\Downloads\httplib2-0.6.0
cd /Users/jesstess/Desktop/Twitter/httplib2-0.6.0
</pre>
</pre>


Line 128: Line 128:
===Test the Twitter code===
===Test the Twitter code===


Start a command prompt and navigate to the Desktop/Twitter directory where the Twitter code lives. For example, if the Twitter project is at <code>C:\Users\jesstess\Desktop\Twitter</code>,
Start a command prompt and navigate to the Desktop/Twitter directory where the Twitter code lives. For example, if the Twitter project is at <code>/Users/jesstess/Desktop/Twitter</code>,


<pre>
<pre>
C:\Users\jesstess\Desktop\Twitter
cd /Users/jesstess/Desktop/Twitter
</pre>
</pre>


Line 137: Line 137:


<pre>
<pre>
ls
dir
</pre>
</pre>