Philadelphia Python Workshop 9/Setup/Windows project dependencies: Difference between revisions

imported>Geography76
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 68:
</pre>
 
will show you the source code files in that directory. In this directory are five folders: Twitter (the main folder) and four dependency folders (simplejson-3.3.0, python-oauth2-master, httplib2-0.8, and python-twitter-1.0). ThreeYou ofwill thealso dependency subfolders have an installer script that we'll need to run atsee a commandfile promptcalled to install the software. For each dependency (in the order: simplejson-3.3.0 python-oauth2-master httplib2-0.8) navigate to the folder using cd. One of the files in this subfolder is "setupez_setup.py", which has a ".py" extension indicating that it is a Python script. Type:
 
Before we can install the dependencies, we must first install some setup tools using ez_setup.py. To do this, change directory into the ez_setup folder and type:
 
<pre>
python ez_setup.py
</pre>
 
Now, we are ready to install the dependencies. Three of the dependency subfolders have an installer script that we'll need to run at a command prompt to install the software. For each dependency (in the order: simplejson-3.3.0 python-oauth2-master httplib2-0.8) navigate to the folder using cd. One of the files in this subfolder is "setup.py", which has a ".py" extension indicating that it is a Python script. Type:
 
<pre>
Line 76 ⟶ 84:
and hit enter to install simplejson-3.3.0.
 
Navigate to the 2 other dependency directories (in the order python-oath2-master, pythonhttplib2-twitter0.8) and run
 
<pre>
Line 87 ⟶ 95:
python setup.py install
</pre>
 
 
===Test the Twitter code===
Anonymous user