Skip to content

Commit 3e6d93b

Browse files
committed
Merge pull request #5 from DarkmatterVale/master
Dependency Auto-Installer
2 parents 11f8124 + 02211a3 commit 3e6d93b

File tree

222 files changed

+53395
-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

+53395
-1
lines changed

InstallDependencies.py

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#This file will automatically install all of the dependencies for the BlocklyPropClient
2+
3+
#Author: [email protected] ( Vale Tolpegin )
4+
5+
#Copyright 2014 Vale Tolpegin.
6+
#
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
20+
21+
import os
22+
23+
#This method will install and test the dependencies
24+
def install():
25+
print "Beginning installation....."
26+
print ""
27+
28+
#Installing CherryPy
29+
os.chdir( "dependencies/CherryPy/" )
30+
os.system( "python setup.py install" )
31+
32+
print ""
33+
print "CherryPy installation complete"
34+
print ""
35+
36+
#Installing PySerial
37+
os.chdir( "../pyserial" )
38+
os.system( "python setup.py install" )
39+
40+
print ""
41+
print "PySerial installation complete"
42+
print ""
43+
44+
#Installing ws4py
45+
os.chdir( "../ws4py" )
46+
os.system( "python setup.py install" )
47+
48+
print ""
49+
print "ws4py installation complete"
50+
print ""
51+
52+
#--------------------------------------------------------------------------------------
53+
54+
#Testing whether installation was successful for each dependency
55+
56+
#Testing whether CherryPy was installed correctly
57+
version = os.system( 'python -c "import cherrypy;print cherrypy.__version__"' )
58+
if ( version != 0 ):
59+
print ""
60+
print "ERROR......INSTALLATION OF CherryPy HAS FAILED"
61+
print ""
62+
exit()
63+
64+
version = os.system( 'python -c "import serial;print serial.Serial()"' )
65+
if ( version != 0 ):
66+
print ""
67+
print "ERROR......INSTALLATION OF PySerial HAS FAILED"
68+
print ""
69+
exit()
70+
71+
version = os.system( 'python -c "import ws4py;print ws4py.__version__"' )
72+
if ( version != 0 ):
73+
print ""
74+
print "ERROR......INSTALLATION OF ws4py HAS FAILED"
75+
print ""
76+
exit()
77+
78+
print ""
79+
print "Installation was successful....."
80+
print ""
81+
82+
83+
#Calling the install method which installs the dependencies
84+
install()

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You will first have to install some python dependencies before you can run Block
1818
* pyserial
1919
* cherrypy
2020

21-
These can all be installed using pip
21+
These can all be installed using the auto-installer by running the following in the terminal: 'python InstallDependencies.py'
2222

2323
Then do: python BlocklyPropClient.py
2424

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)