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

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…')
 
 
(3 intermediate revisions by 2 users not shown)
Line 50:
===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>,
 
<pre>
C:\cd /Users\/jesstess\/Desktop\/Wordplay
</pre>
 
Line 59:
 
<pre>
ls
dir
</pre>
 
Line 79:
 
<ol>
<li>Click and save these four dependencies to your Downloads directoryDesktop:
 
* http://mit.edu/jesstess/www/BostonPythonWorkshop2/Twitter/httplib2-0.6.0.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop2/Twitter/python-twitter-0.8.2.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop2/Twitter/python-oauth2.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop2/Twitter/simplejson-2.1.6.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop2/Twitter/python-twitter-0.8.2.zip
</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, double-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.
</li>
</ol>
Line 93:
===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 DownloadsDesktop directory where the source code lives. For example, if the httplib2-0.6.0 project was extracted to C:\/Users\/jesstess\Downloads\/Desktop/Twitter/httplib2-0.6.0,
 
<pre>
cd C:\/Users\/jesstess\Downloads\/Desktop/Twitter/httplib2-0.6.0
</pre>
 
Line 102:
 
<pre>
ls
dir
</pre>
 
Line 108:
 
<pre>
sudo python setup.py install
</pre>
 
and hit enter to install httplib2. You will need to enter your Mac account password.
 
Navigate to the 3 other dependency directories and run
Line 128:
===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>,
 
<pre>
C:\cd /Users\/jesstess\/Desktop\/Twitter
</pre>
 
Line 137:
 
<pre>
ls
dir
</pre>
 
Anonymous user