Skip to content

Commit e7097f6

Browse files
Added auto-installer for dependencies
1 parent 69929fc commit e7097f6

File tree

222 files changed

+53376
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+53376
-1
lines changed

DependencyDownload.py

-1
This file was deleted.

InstallDependencies.py

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#This file will automatically install all of the dependencies for the BlocklyPropClient
2+
3+
import os
4+
5+
#This method will install and test the dependencies
6+
def install():
7+
print "Beginning installation....."
8+
print ""
9+
10+
#Installing CherryPy
11+
os.chdir( "dependencies/CherryPy/" )
12+
os.system( "python setup.py install" )
13+
14+
print ""
15+
print "CherryPy installation complete"
16+
print ""
17+
18+
#Installing PySerial
19+
os.chdir( "../pyserial" )
20+
os.system( "python setup.py install" )
21+
22+
print ""
23+
print "PySerial installation complete"
24+
print ""
25+
26+
#Installing ws4py
27+
os.chdir( "../ws4py" )
28+
os.system( "python setup.py install" )
29+
30+
print ""
31+
print "ws4py installation complete"
32+
print ""
33+
34+
#--------------------------------------------------------------------------------------
35+
36+
#Testing whether installation was successful for each dependency
37+
38+
#Testing whether CherryPy was installed correctly
39+
version = os.system( 'python -c "import cherrypy;print cherrypy.__version__"' )
40+
if ( version != 0 ):
41+
print ""
42+
print "ERROR......INSTALLATION OF CherryPy HAS FAILED"
43+
print ""
44+
exit()
45+
46+
version = os.system( 'python -c "import serial;print serial.Serial()"' )
47+
if ( version != 0 ):
48+
print ""
49+
print "ERROR......INSTALLATION OF PySerial HAS FAILED"
50+
print ""
51+
exit()
52+
53+
version = os.system( 'python -c "import ws4py;print ws4py.__version__"' )
54+
if ( version != 0 ):
55+
print ""
56+
print "ERROR......INSTALLATION OF ws4py HAS FAILED"
57+
print ""
58+
exit()
59+
60+
print ""
61+
print "Installation was successful....."
62+
print ""
63+
64+
65+
#Calling the install method which installs the dependencies
66+
install()

dependencies/CherryPy/MANIFEST.in

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
include cherrypy/cherryd
2+
include cherrypy/favicon.ico
3+
include cherrypy/LICENSE.txt
4+
include cherrypy/scaffold/*.conf
5+
include cherrypy/scaffold/static/*.png
6+
include cherrypy/test/style.css
7+
include cherrypy/test/test.pem
8+
include cherrypy/test/static/*.html
9+
include cherrypy/test/static/*.jpg
10+
include cherrypy/tutorial/*.conf
11+
include cherrypy/tutorial/*.pdf
12+
include cherrypy/tutorial/*.html
13+
include cherrypy/tutorial/README.txt

dependencies/CherryPy/PKG-INFO

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Metadata-Version: 1.1
2+
Name: CherryPy
3+
Version: 3.6.0
4+
Summary: Object-Oriented HTTP framework
5+
Home-page: http://www.cherrypy.org
6+
Author: CherryPy Team
7+
Author-email: [email protected]
8+
License: BSD
9+
Description: CherryPy is a pythonic, object-oriented HTTP framework
10+
Platform: UNKNOWN
11+
Classifier: Development Status :: 5 - Production/Stable
12+
Classifier: Environment :: Web Environment
13+
Classifier: Intended Audience :: Developers
14+
Classifier: License :: Freely Distributable
15+
Classifier: Operating System :: OS Independent
16+
Classifier: Framework :: CherryPy
17+
Classifier: License :: OSI Approved :: BSD License
18+
Classifier: Programming Language :: Python
19+
Classifier: Programming Language :: Python :: 2
20+
Classifier: Programming Language :: Python :: 2.3
21+
Classifier: Programming Language :: Python :: 2.4
22+
Classifier: Programming Language :: Python :: 2.5
23+
Classifier: Programming Language :: Python :: 2.6
24+
Classifier: Programming Language :: Python :: 2.7
25+
Classifier: Programming Language :: Python :: 3
26+
Classifier: Programming Language :: Python :: 3.3
27+
Classifier: Programming Language :: Python :: Implementation
28+
Classifier: Programming Language :: Python :: Implementation :: CPython
29+
Classifier: Programming Language :: Python :: Implementation :: Jython
30+
Classifier: Programming Language :: Python :: Implementation :: PyPy
31+
Classifier: Topic :: Internet :: WWW/HTTP
32+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
33+
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
34+
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
35+
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
36+
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Server
37+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks

dependencies/CherryPy/README.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* To install, change to the directory where setup.py is located and type (python-2.3 or later needed):
2+
3+
python setup.py install
4+
5+
* To learn how to use it, look at the examples under cherrypy/tutorial/ or go to http://www.cherrypy.org for more info.
6+
7+
* To run the regression tests, just go to the cherrypy/test/ directory and type:
8+
9+
nosetests -s ./
10+
11+
Or to run individual tests type:
12+
13+
nosetests -s test_foo.py
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2004-2011, CherryPy Team ([email protected])
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
* Neither the name of the CherryPy Team nor the names of its contributors
13+
may be used to endorse or promote products derived from this software
14+
without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)