Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
827ae100
Commit
827ae100
authored
Feb 24, 2016
by
carlosperate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PyInstaller pip install instead of git submodule.
parent
39500fff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
.travis.yml
.travis.yml
+3
-1
circle.yml
circle.yml
+2
-0
package/build_pyinstaller.py
package/build_pyinstaller.py
+4
-8
package/pyinstaller.spec
package/pyinstaller.spec
+1
-1
No files found.
.travis.yml
View file @
827ae100
...
...
@@ -9,7 +9,7 @@ before_install:
# Install python
-
brew update
-
brew install python
2
-
brew install python
-
brew link --overwrite python
-
pip install --upgrade pip
-
PATH=/usr/local/bin:$PATH
...
...
@@ -21,6 +21,8 @@ before_install:
-
pip install mock
-
pip install mkdocs
-
pip install pyinstaller
-
pyinstaller --version
# Install node.js
-
brew unlink node
...
...
circle.yml
View file @
827ae100
...
...
@@ -33,6 +33,8 @@ dependencies:
-
sudo apt-get install -y python-tk
-
sudo pip install mock
-
sudo pip install mkdocs
-
sudo pip install pyinstaller
-
pyinstaller --version
# Install node.js
#- curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
...
...
package/build_pyinstaller.py
View file @
827ae100
...
...
@@ -34,7 +34,6 @@ import sys
import
shutil
import
platform
import
subprocess
from
glob
import
glob
spec_coll_name
=
"server"
...
...
@@ -53,7 +52,7 @@ project_root_dir = \
def
remove_directory
(
dir_to_remove
):
"""
Removes the a given directory
. """
"""
:param dir_to_remove: Directory to remove
. """
if
os
.
path
.
exists
(
dir_to_remove
):
print
(
script_tab
+
"Removing directory %s"
%
dir_to_remove
)
shutil
.
rmtree
(
dir_to_remove
)
...
...
@@ -109,9 +108,7 @@ def pyinstaller_build():
package folder. Captures the output streams and checks for errors.
:return: Boolean indicating the success state of the operation.
"""
process_args
=
[
"python"
,
"%s"
%
os
.
path
.
join
(
"package"
,
"pyinstaller"
,
"pyinstaller.py"
),
process_args
=
[
"pyinstaller"
,
"%s"
%
os
.
path
.
join
(
"package"
,
"pyinstaller.spec"
)]
print
(
script_tab
+
"Command: %s"
%
process_args
)
...
...
@@ -169,8 +166,7 @@ def create_shell_file(os_type):
'DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
\n
'
\
'echo "[Shell Launch Script] Executing from: $DIR"
\n
'
\
'./%s'
%
os
.
path
.
join
(
exec_folder_name
,
"ardublockly"
)
shell_location
=
os
.
path
.
join
(
project_root_dir
,
"ardublockly_run.sh"
)
shell_location
=
os
.
path
.
join
(
project_root_dir
,
"ardublockly_run.sh"
)
else
:
# No other OS expected, so just return. This should never happen
return
...
...
package/pyinstaller.spec
View file @
827ae100
...
...
@@ -6,7 +6,7 @@
block_cipher
=
None
a
=
Analysis
([
'start.py'
],
a
=
Analysis
([
'
../
start.py'
],
pathex
=
None
,
hiddenimports
=
[
"ardublocklyserver"
],
hookspath
=
None
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment