Skip to content

Commit dd24b1d

Browse files
committed
fix(python): Fix missing package_meta on pip install
Fixes #95
1 parent fdae4b3 commit dd24b1d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,14 @@ py-doc: python
198198
@touch $(SPHINX_TARGET_DIR)/.nojekyll
199199
sphinx-build -b html $(SPHINX_SOURCE_DIR) $(SPHINX_TARGET_DIR)
200200

201-
.PHONY: pypitest_publish pypi_publish
201+
.PHONY: pypitest_publish pypi_publish py_clean
202202
PYPI_DIR = $(PY_BUILD_DIR)
203203
PYPI_SDIST = $(shell find $(PYPI_DIR) -name "*.tar.gz" 2>/dev/null)
204204

205-
pypi_dist: python
205+
py_clean:
206+
$(RM) -r $(PY_BUILD_DIR)/dist
207+
208+
pypi_dist: py_clean python
206209
cd $(PY_BUILD_DIR) && python setup.py sdist bdist_wheel
207210

208211
# pip -vvv --no-cache-dir install --upgrade -I --index-url https://test.pypi.org/simple/ infomap

interfaces/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
#
148148
# packages=find_packages(exclude=['contrib', 'docs', 'tests']), # Required
149149
# packages=['infomap'],
150-
py_modules=["infomap"],
150+
py_modules=["infomap", "package_meta"],
151151

152152
# This field lists other packages that your project depends on to run.
153153
# Any package you put here will be installed by pip when your project is

0 commit comments

Comments
 (0)