Skip to content

Commit

Permalink
[swig] refs skycoin#131 Solve build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed May 5, 2019
1 parent f5f38d0 commit a3f16c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Binary file added .fuse_hidden0003358400000017
Binary file not shown.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ lib/swig/eggs
eggs
lib/swig/wheelhouse/
wheelhouse/

*fuse*
*~

#Copy of libskycoin.h in pyskycoin
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,33 +65,33 @@ build-swig: ## Generate Python C module from SWIG interfaces
rm -f $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c
rm -f $(LIBSWIG_PYSKYCOIN)/swig/include/swig.h
cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h $(LIBSWIG_PYSKYCOIN)/swig/include/
swig -python -Ilib/swig/swig/include -I$(INCLUDE_DIR) -outdir $(LIBSWIG_PYSKYCOIN)/skycoin/ -o $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c $(LIBSWIG_DIR)/pyskycoin.i
swig -python -Ilib/swig/swig/include -I$(shell pwd)/gopath/src/github.com/skycoin/skycoin/include -outdir $(LIBSWIG_PYSKYCOIN)/skycoin/ -o $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c $(LIBSWIG_DIR)/pyskycoin.i

develop: ## Install PySkycoin for development
(cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py develop) \
$(PYTHON) $(PYTHON_CLIENT_DIR)/setup.py develop \
(cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py develop)

build-libc-swig: build-libc build-swig

build: build-libc-swig ## Build PySkycoin Python package
(cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py build)
$(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py build
(cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py build)

test-ci: ## Run tests on (Travis) CI build
# (cd $(LIBSWIG_PYSKYCOIN) && tox)
(cd $(PYTHON_CLIENT_DIR) && tox)
(cd $(PYTHON_CLIENT_DIR) && tox)


test: build-libc build-swig develop ## Run project test suite
(cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py test) \
$(PYTHON) $(PYTHON_CLIENT_DIR)/setup.py test \
(cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py test)

sdist: ## Create source distribution archive
(cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py sdist --formats=gztar) \
$(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py sdist --formats=gztar \
(cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py sdist --formats=gztar)

bdist_wheel: ## Create architecture-specific binary wheel distribution archive
(cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py bdist_wheel)/
$(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py bdist_wheel \
(cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py bdist_wheel)

# FIXME: After libskycoin 32-bits binaries add bdist_manylinux_i686
Expand Down

0 comments on commit a3f16c0

Please sign in to comment.