You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-194Lines changed: 3 additions & 194 deletions
Original file line number
Diff line number
Diff line change
@@ -2,198 +2,7 @@ BlocklyPropClient
2
2
=======================
3
3
4
4
# Introduction
5
-
--------------
5
+
The BlocklyPropClient is a vital part of the http://blockly.parallax.com system that must be installed and run locally on the user's computer to complete the connection to the target Propeller microcontroller product. It provides local connection features- downloading your programs into the Propeller-based product and creating a debugging serial connection between it and the BlocklyProp Editor in the web browser.
6
6
7
-
The BlocklyPropClient is a client for the http://blockly.parallax.com system.
8
-
It provides local Propeller connection features- downloading your programs into the Propeller and creating a serial connection between the Propeller and the browser.
9
-
10
-
BlocklyPropClient is written using Python v2.7.
11
-
12
-
13
-
# Running
14
-
---------
15
-
16
-
Installations are self-contained; no extra dependencies are required except for USB drivers for Parallax development boards.
17
-
18
-
## Running on Linux
19
-
You will first have to install some python dependencies before you can run BlocklyPropClient.
20
-
21
-
* ws4py
22
-
* pyserial
23
-
* cherrypy
24
-
25
-
These can all be installed using the auto-installer by running the following in the terminal: 'python InstallDependencies.py'
26
-
27
-
Then execute: python BlocklyPropClient.py
28
-
29
-
30
-
# Developers
31
-
------------
32
-
33
-
To build and package BlocklyProp Client, configure your system and then perform the appropriate build and package steps below.
34
-
35
-
## System Configuration
36
-
These configurations steps need only be done once per system.
37
-
38
-
### Windows Configuration
39
-
40
-
*__IMPORTANT:__ Don't use _McAfee_ (or possibly any anti-virus) on build system - it prevents proper builds of BlocklyPropClient installer
* Create a _Virtual Python_ environment inside the repository's work folder
99
-
*_$ virtualenv VPython --distribute_
100
-
* Activate the _Virtual Python_ environment for BlocklyPropClient
101
-
*_$ source VPython/bin/activate_
102
-
* Install all required packages for BlocklyPropClient
103
-
* Install _ws4py v0.3.5+_
104
-
*_(VPython)$ pip install ws4py==0.3.5_
105
-
* Install _CherryPy v8.1.0_
106
-
*_(VPython)$ pip install CherryPy==8.1.0_
107
-
*_Install pyserial v3.1.1_
108
-
*_(VPython)$ pip install pyserial==3.1.1_
109
-
* Install _PyInstaller v3.1.1_ (Do not use v3.2 as it creates an msc..100 dependency)
110
-
*_(VPython)$ pip install PyInstaller==3.1.1_
111
-
* Deactivate the _Virtual Environment..._
112
-
*_(VPython)$ deactivate_
113
-
* The "(VPython)" prefix will now disappear from your command-line
114
-
115
-
## Building & Packaging
116
-
These steps need be performed frequently, as needed, after System Configuration (above).
117
-
118
-
### Windows Building & Packaging
119
-
120
-
* Build the BlocklyPropClient
121
-
* Open a command window
122
-
* Check out the needed branch from the _BlocklyPropClient_ repository
123
-
* This can be done either
124
-
* in _PyCharm's VCS > Git > Branches..._ menu, then select _origin/{branch} > Checkout as new local branch_ from _Remote Branches_ (or if _Local Branches_ section exists, you can select _{branch} -> origin/{branch}_ from _Local Branches_), then Exit PyCharm
125
-
* in Git command line:
126
-
*_$ cd C:\Users\{username}\PycharmProjects\BlocklyPropClient_
127
-
*_$ git checkout origin {branch}_
128
-
* Run the build script (.windows.spec) from within the repository directory:
* This builds and stores the application bundle in the ./dist subfolder as BlocklyPropClient.app
149
-
* See BlocklyPropClient.macos.spec Details (below) for more information
150
-
* Sign and Package BlocklyPropClient (requires signing certificate in Mac's KeyChain)
151
-
* Navigate to the package folder
152
-
* cd package
153
-
* Run the mac_sign_and_package script giving the proper version number and deploy option
154
-
* To include the FTDI USB Drivers inside the installer:
155
-
*_$ ./mac_app_sign_and_package.sh -a "BlocklyPropClient" -v 0.5.1 -r -f -d_
156
-
* To exclude the FTDI USB Drivers from the installer:
157
-
*_$ ./mac_app_sign_and_package.sh -a "BlocklyPropClient" -v 0.5.1 -d_
158
-
* The installer package will be written to the ../dist subfolder as BlocklyPropClient-0.5.1-setup-MacOS.pkg
159
-
* Deactivate the Virtual Environment...
160
-
*_(VPython)$ deactivate_
161
-
* The "(VPython)" prefix will now disappear from your command-line
162
-
163
-
#### BlocklyPropClient.macos.spec Details
164
-
165
-
The BlocklyPropClient.macos.spec is the build specification file for Mac OS. This file contains Python executable source generated automatically by the pyi-makespec command and also later amended to include features not expressible via the pyi-makespec command-line.
166
-
167
-
To regenerate a specification file for Mac OS:
168
-
* Navigate to the project
169
-
*_$ cd ~/PythonProjects/BlocklyPropClient_
170
-
* Activate the _Virtual Python_ environment for BlocklyPropClient
0 commit comments