Skip to content

Commit

Permalink
release-prep: update Makefile to produce universal host packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ktemkin committed Sep 3, 2019
1 parent 22e0834 commit b3cde77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ appveyor.yml export-ignore
.travis.yml export-ignore
.gitattributes export-ignore
id_deploy.enc export-ignore
.editorconfig export-ignore
.clang-format export-ignore
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,9 @@ endif
@mkdir -p host-packages
@mkdir -p build

@#Python 2
@pushd libgreat/host; $(PYTHON2) setup.py bdist_wheel --universal -d $(CURDIR)/host-packages; popd
@pushd host; $(PYTHON2) setup.py bdist_wheel --universal -d $(CURDIR)/host-packages; popd

@#Python 3
@pushd libgreat/host; $(PYTHON3) setup.py bdist_wheel -d $(CURDIR)/host-packages; popd
@pushd host; $(PYTHON3) setup.py bdist_wheel -d $(CURDIR)/host-packages; popd
@#Create our python pacakges. These universal packages work for py2/py3.
@pushd libgreat/host; $(PYTHON3) setup.py bdist_wheel --universal -d $(CURDIR)/host-packages; popd
@pushd host; $(PYTHON3) setup.py bdist_wheel --universal -d $(CURDIR)/host-packages; popd

@# Create files for e.g. the nightly.
@pushd libgreat/host; $(PYTHON3) setup.py bdist_wheel -d $(CURDIR)/release-files; popd
Expand Down Expand Up @@ -236,3 +232,4 @@ clean:

# Clean out our created files and directories.
rm -rf VERSION firmware-bin host-packages release-files distro-packages *.egg-info CMakeFiles
rm -rf host/greatfet/assets/*.bin

0 comments on commit b3cde77

Please sign in to comment.