Installer (#840)

This commit is contained in:
Charlotte Weaver
2019-07-12 12:29:22 -07:00
committed by GitHub
parent 777214cc14
commit 3d98797d8c
12 changed files with 383 additions and 10 deletions
+22 -2
View File
@@ -1,7 +1,7 @@
BUILDDIR := build
CLIENTBUILD := $(BUILDDIR)/client
SERVERBUILD := $(BUILDDIR)/server
CLEANFILES := $(BUILDDIR)/ client/build dist cellxgene.egg-info
CLEANFILES := $(BUILDDIR)/ client/build build dist cellxgene.egg-info
PART ?= patch
@@ -84,6 +84,9 @@ release-directly-to-prod : dev-env pydist twine-prod
dev-env :
pip install -r server/requirements-dev.txt
gui-env : dev-env
pip install -r server/requirements-gui.txt
# give PART=[major, minor, part] as param to make bump
bump :
bumpversion --config-file .bumpversion.cfg $(PART)
@@ -136,4 +139,21 @@ uninstall :
build-assets :
pyside2-rcc server/gui/cellxgene.qrc -o server/gui/cellxgene_rc.py
.PHONY : build-assets
gui-spec-osx : clean-lite gui-env
pip install -e .[gui]
pyi-makespec -D -w --additional-hooks-dir server/gui/ -n cellxgene --add-binary='/System/Library/Frameworks/Tk.framework/Tk':'tk' --add-binary='/System/Library/Frameworks/Tcl.framework/Tcl':'tcl' --add-data server/app/web/templates/:server/app/web/templates/ --add-data server/app/web/static/:server/app/web/static/ --icon server/gui/images/cxg_icons.icns server/gui/main.py
mv cellxgene.spec cellxgene-osx.spec
gui-spec-windows : clean-lite dev-env
pip install -e .[gui]
pyi-makespec -D -w --additional-hooks-dir server/gui/ -n cellxgene --add-data server/app/web/templates;server/app/web/templates --add-data server/app/web/static;server/app/web/static --icon server/gui/images/icon.ico server/gui/main.py
mv cellxgene.spec cellxgene-windows.spec
gui-build-osx : clean-lite
pyinstaller --clean cellxgene-osx.spec
gui-build-windows : clean-lite
pyinstaller --clean cellxgene-windows.spec
.PHONY : build-assets gui-build-osx gui-build-windows gui-build-osx gui-build-windows