Skip to content

Commit d647887

Browse files
Update CI code for python3 on host and zenoss.modelindex component change.
1 parent 3345850 commit d647887

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

ci/makefile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,17 @@ get_component_name = $(subst .tar,,$(subst -0-py2-none-any,,$(notdir $(basename
1919
COMPONENTS_DIR = prodbin/components
2020
COMPONENT_FILES = \
2121
extjs.tgz \
22-
modelindex.tgz \
2322
libsmi.deb \
2423
penparser-0-py2-none-any.whl \
2524
pydeps.tgz \
2625
pynetsnmp-0-py2-none-any.whl \
2726
service-migration-0-py2-none-any.whl \
27+
zenoss.modelindex-0-py2-none-any.whl \
2828
zenoss.protocols-0-py2-none-any.whl \
2929
zenoss.toolbox-0-py2-none-any.whl \
3030
zensocket.tgz
3131
COMPONENTS = $(addprefix $(COMPONENTS_DIR)/,$(COMPONENT_FILES))
3232
COMPONENT_VERSIONS = $(ASSEMBLY_PATH)/component_versions.json
33-
MODELINDEX_WHL = $(COMPONENTS_DIR)/zenoss.modelindex-0-py2-none-any.whl
3433

3534
ZENOSS_WHL = $(COMPONENTS_DIR)/zenoss-0-py2-none-any.whl
3635
ZENOSS_SRC = $(shell ls -t ../dist/*.whl | head -1)
@@ -48,7 +47,6 @@ DEPENDENCIES = \
4847
$(DOCKERFILE) \
4948
mariadb/initdb.d/zodb.sql.gz \
5049
$(COMPONENTS) \
51-
$(MODELINDEX_WHL) \
5250
$(ZENOSS_WHL) \
5351
$(SOLR_FILES) \
5452
prodbin/hubpasswd \
@@ -88,16 +86,13 @@ $(DOCKERFILE): $(DOCKERFILE).in prodbin/packages.txt ../VERSION
8886
-e 's|%UID%|$(ZENOSS_UID)|' \
8987
- > $@
9088

91-
$(SOLR_FILES): $(COMPONENTS_DIR)/modelindex.tgz | $(SOLR_FILES_DIR)
92-
@tar xf $< -C $(SOLR_FILES_DIR)/ --strip-components=6 $(addprefix $(SOLR_TAR_PATH)/,$(notdir $@))
89+
$(SOLR_FILES): $(COMPONENTS_DIR)/zenoss.modelindex-0-py2-none-any.whl | $(SOLR_FILES_DIR)
90+
@unzip -j $< $(addprefix $(SOLR_TAR_PATH)/,$(notdir $@)) -d $(SOLR_FILES_DIR)/
9391

9492
mariadb/initdb.d/zodb.sql.gz: | mariadb/initdb.d
9593
mariadb/initdb.d/zodb.sql.gz: ../src/Products/ZenModel/data/zodb.sql.gz
9694
@cp $< $@
9795

98-
$(MODELINDEX_WHL): $(COMPONENTS_DIR)/modelindex.tgz
99-
@tar -xz -C $(COMPONENTS_DIR)/ -f $< --strip-components=1 --wildcards --transform="s/-[0-9.]\+-/-0-/" dist/zenoss.modelindex*.whl
100-
10196
$(ZENOSS_WHL): $(ZENOSS_SRC)
10297
@cp $< $@
10398

javascript.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ JSB_FILE = $(JS_BASEDIR)/builder.jsb2
77
# JS_DEPLOYPATH - the output directory relative to the repo root;
88
# e.g. src/Products/ZenUI3/browser/resources/deploy
99
#
10-
JS_DEPLOYPATH = $(JS_BASEDIR)/$(shell python2 -c "import json; print json.load(open('$(JSB_FILE)'))['deployDir']")
10+
JS_DEPLOYPATH = $(JS_BASEDIR)/$(shell python -c "import json; print(json.load(open('$(JSB_FILE)'))['deployDir'])")
1111

1212
BUILDJS_COMMAND_ARGS = -d $(JS_BASEDIR)
1313

1414
# Dependencies for compilation
15-
JSB_SOURCES = $(shell python2 -c "import json, os.path; print ' '.join(os.path.join('$(JS_BASEDIR)', e['path'], e['text']) for e in json.load(open('$(JSB_FILE)'))['pkgs'][0]['fileIncludes'])")
15+
JSB_SOURCES = $(shell python -c "import json, os.path; print(' '.join(os.path.join('$(JS_BASEDIR)', e['path'], e['text']) for e in json.load(open('$(JSB_FILE)'))['pkgs'][0]['fileIncludes']))")
1616

1717
JSB_TARGETS = $(JS_DEPLOYPATH)/zenoss-compiled.js $(JS_DEPLOYPATH)/zenoss-compiled-debug.js
1818

0 commit comments

Comments
 (0)