mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 19:58:13 +08:00
Installer (#840)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user