Boston Python Workshop 5/Friday/OSX project dependencies: Difference between revisions

no edit summary
imported>Jesstess3
(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…')
 
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 5:
You'll be writing graphical effects for an existing ColorWall project. Download this ColorWall code and example effects so you're ready to start working with them tomorrow:
 
# Right click the following file, click "Save Target as..." or "Save link as...", and save it to your Desktop directory:
# Create a new folder called ColorWall on your Desktop
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWall/ascii8x8ColorWall.pyzip
# Save the following files to the ColorWall folder:
#Find ColorWall.zip on your Desktop and double-click on it to "unzip" it. That will create a folder called ColorWall containing several files.
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWall/advanced_effects.py
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWall/more_effects.py
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWall/ascii8x8.py
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWall/effects.py
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWall/run.py
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWall/wall.py
 
===Test the ColorWall code===
Line 60 ⟶ 55:
We've written some skeleton code for the Wordplay project already. Download this code so you're ready to start working with it tomorrow:
 
# Right click the following file, click "Save Target as..." or "Save link as...", and save it to your Desktop directory:
# Create a new folder called Wordplay on your Desktop
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWallWordplay/runWordplay.pyzip
# Save the following files to the Wordplay folder:
#Find Wordplay.zip on your Desktop and double-click on it to "unzip" it. That will create a folder called Wordplay containing several files.
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/sowpods.txt
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/scrabble.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/scrabble_cheater.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/words1.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/words2.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/words3.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/words4.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/words5.py
## http://mit.edu/jesstess/www/BostonPythonWorkshop5/Wordplay/words6.py
 
===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>/Users/jesstess~/Desktop/Wordplay</code>,
 
<pre>
cd /Users/jesstess~/Desktop/Wordplay
</pre>
 
Line 106 ⟶ 93:
* http://mit.edu/jesstess/www/BostonPythonWorkshop5/Twitter/httplib2-0.6.0.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop5/Twitter/simplejson-2.1.6.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop5/Twitter/python-twitter-0.8.2.zip
* http://mit.edu/jesstess/www/BostonPythonWorkshop5/Twitter/python-oauth2.zip
</li>
Line 116 ⟶ 103:
===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. '''It is important that the dependencies are installed in the order listed above.''' 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>
cd /Users/jesstess~/Desktop/Twitter/httplib2-0.6.0
</pre>
 
Line 143 ⟶ 130:
 
in all of them to install those dependencies as well.
 
===Download the Twitter project===
 
We've written some skeleton code for the Twitter project already. Download this code so you're ready to start working with it tomorrow:
 
# Right click the following file, click "Save Target as..." or "Save link as...", and save it to your Desktop directory:
# Create a new folder called Twitter on your Desktop
# Save* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/Twitter/twitter_api.py to the Twitter folder.zip
#Find Twitter.zip on your Desktop and double-click on it to "unzip" it. That will create a folder called Twitter containing several files.
# Save http://mit.edu/jesstess/www/BostonPythonWorkshop5/Twitter/util.py to the Twitter folder.
 
===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>/Users/jesstess~/Desktop/Twitter</code>,
 
<pre>
cd /Users/jesstess~/Desktop/Twitter
</pre>
 
Line 175 ⟶ 164:
 
You've completed setup for the Twitter project.
 
==State Capitals==
 
We'll look at an example Python script that quizzes you on state capitals during the lecture on Saturday.
 
# Right click the following file, click "Save Target as..." or "Save link as...", and save it to your Desktop directory:
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop5/ColorWall/effectsstate_capitals.py
 
==Success!==
 
You are done installing dependencies for the Saturday projects.
 
[[Boston Python Workshop 5/Friday|&laquo; Back to the Friday setup page]]
Anonymous user