mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix PIP packaging code so it works nicely on Linux and Mac.
This commit is contained in:
parent
dc64160f82
commit
b1d26db8d9
6
Makefile
6
Makefile
@ -34,13 +34,13 @@ PIP_CHECK_CMD = which pip &> /dev/null && pip show pip | grep Metadata-Version 2
|
|||||||
PGADMIN_SRC_DIR = pgadmin4
|
PGADMIN_SRC_DIR = pgadmin4
|
||||||
PGADMIN_EGG = ${PGADMIN_SRC_DIR}.egg-info
|
PGADMIN_EGG = ${PGADMIN_SRC_DIR}.egg-info
|
||||||
PGADMIN_BUILD = build
|
PGADMIN_BUILD = build
|
||||||
PGADMIN_DIST = build
|
PGADMIN_DIST = dist
|
||||||
PGADMIN_MANIFEST = MANIFEST.in
|
PGADMIN_MANIFEST = MANIFEST.in
|
||||||
PGADMIN_INSTALL_CMD = pip install --use-wheel --find-links=${PGADMIN_DIST} ${PGADMIN_SRC_DIR}
|
PGADMIN_INSTALL_CMD = pip install --use-wheel --find-links=${PGADMIN_DIST} ${PGADMIN_SRC_DIR}
|
||||||
|
|
||||||
|
|
||||||
define create_manifest
|
define create_manifest
|
||||||
@echo 'recursive-include ${PGADMIN_SRC_DIR} *\nglobal-exclude pgadmin4.db *.pyc' > ${PGADMIN_MANIFEST}
|
@printf 'recursive-include ${PGADMIN_SRC_DIR} *\nglobal-exclude pgadmin4.db *.pyc' > ${PGADMIN_MANIFEST}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define build
|
define build
|
||||||
@ -75,7 +75,7 @@ ifeq ($(shell ${WHEEL_CHECK_CMD}),)
|
|||||||
false; \
|
false; \
|
||||||
fi
|
fi
|
||||||
endif
|
endif
|
||||||
|
rm -rf ${PGADMIN_SRC_DIR}
|
||||||
cp -r web ${PGADMIN_SRC_DIR}
|
cp -r web ${PGADMIN_SRC_DIR}
|
||||||
$(call create_manifest)
|
$(call create_manifest)
|
||||||
$(call build)
|
$(call build)
|
||||||
|
Loading…
Reference in New Issue
Block a user