Commit 827ae100 authored by carlosperate's avatar carlosperate

Use PyInstaller pip install instead of git submodule.

parent 39500fff
...@@ -9,7 +9,7 @@ before_install: ...@@ -9,7 +9,7 @@ before_install:
# Install python # Install python
- brew update - brew update
- brew install python2 - brew install python
- brew link --overwrite python - brew link --overwrite python
- pip install --upgrade pip - pip install --upgrade pip
- PATH=/usr/local/bin:$PATH - PATH=/usr/local/bin:$PATH
...@@ -21,6 +21,8 @@ before_install: ...@@ -21,6 +21,8 @@ before_install:
- pip install mock - pip install mock
- pip install mkdocs - pip install mkdocs
- pip install pyinstaller
- pyinstaller --version
# Install node.js # Install node.js
- brew unlink node - brew unlink node
......
...@@ -33,6 +33,8 @@ dependencies: ...@@ -33,6 +33,8 @@ dependencies:
- sudo apt-get install -y python-tk - sudo apt-get install -y python-tk
- sudo pip install mock - sudo pip install mock
- sudo pip install mkdocs - sudo pip install mkdocs
- sudo pip install pyinstaller
- pyinstaller --version
# Install node.js # Install node.js
#- curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - #- curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
......
...@@ -34,7 +34,6 @@ import sys ...@@ -34,7 +34,6 @@ import sys
import shutil import shutil
import platform import platform
import subprocess import subprocess
from glob import glob
spec_coll_name = "server" spec_coll_name = "server"
...@@ -53,7 +52,7 @@ project_root_dir = \ ...@@ -53,7 +52,7 @@ project_root_dir = \
def remove_directory(dir_to_remove): 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): if os.path.exists(dir_to_remove):
print(script_tab + "Removing directory %s" % dir_to_remove) print(script_tab + "Removing directory %s" % dir_to_remove)
shutil.rmtree(dir_to_remove) shutil.rmtree(dir_to_remove)
...@@ -109,9 +108,7 @@ def pyinstaller_build(): ...@@ -109,9 +108,7 @@ def pyinstaller_build():
package folder. Captures the output streams and checks for errors. package folder. Captures the output streams and checks for errors.
:return: Boolean indicating the success state of the operation. :return: Boolean indicating the success state of the operation.
""" """
process_args = [ process_args = ["pyinstaller",
"python",
"%s" % os.path.join("package", "pyinstaller", "pyinstaller.py"),
"%s" % os.path.join("package", "pyinstaller.spec")] "%s" % os.path.join("package", "pyinstaller.spec")]
print(script_tab + "Command: %s" % process_args) print(script_tab + "Command: %s" % process_args)
...@@ -169,8 +166,7 @@ def create_shell_file(os_type): ...@@ -169,8 +166,7 @@ def create_shell_file(os_type):
'DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )\n' \ 'DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )\n' \
'echo "[Shell Launch Script] Executing from: $DIR"\n' \ 'echo "[Shell Launch Script] Executing from: $DIR"\n' \
'./%s' % os.path.join(exec_folder_name, "ardublockly") './%s' % os.path.join(exec_folder_name, "ardublockly")
shell_location = os.path.join( shell_location = os.path.join(project_root_dir, "ardublockly_run.sh")
project_root_dir, "ardublockly_run.sh")
else: else:
# No other OS expected, so just return. This should never happen # No other OS expected, so just return. This should never happen
return return
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
block_cipher = None block_cipher = None
a = Analysis(['start.py'], a = Analysis(['../start.py'],
pathex=None, pathex=None,
hiddenimports=["ardublocklyserver"], hiddenimports=["ardublocklyserver"],
hookspath=None, hookspath=None,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment