Skip to content

Commit 2d940d9

Browse files
make this wrapper installable via pip
1 parent 3e9fbca commit 2d940d9

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/*.egg-info
55
/openslide/_convert*.so
66
*.pyc
7+
Pipfile

Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
MAKE = make
2+
PYTHON = python
3+
SETUP = $(PYTHON) ./setup.py
4+
5+
.PHONY: clean cleandocs coverage dist docs opendocs unit-coverage upload
6+
7+
help:
8+
@echo "Usage: \`make <target>' where <target> is one or more of"
9+
@echo " clean delete intermediate work product and start fresh"
10+
@echo " cleandocs delete cached HTML documentation and start fresh"
11+
@echo " coverage report overall test coverage"
12+
@echo " docs build HTML documentation using Sphinx (incremental)"
13+
@echo " opendocs open local HTML documentation in browser"
14+
@echo " dist generate source and wheel distribution into dist/"
15+
@echo " unit-coverage report unit test coverage"
16+
@echo " upload upload distribution to PyPI"
17+
18+
clean:
19+
find . -type f -name \*.pyc -exec rm {} \;
20+
find . -type f -name .DS_Store -exec rm {} \;
21+
rm -rf dist .coverage
22+
23+
24+
dist:
25+
rm -rf dist/
26+
$(SETUP) sdist bdist_wheel
27+
28+
upload:
29+
rm -rf dist/
30+
$(SETUP) sdist bdist_wheel
31+
twine upload dist/*

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
OpenSlide Python
33
================
44

5+
!!!THIS IS A TEMPORARY WORKAROUND TO HAVE openslide-python INSTALLABLE VIA PIP WITHOUT SETUPTOOLS ISSUE!!!
6+
57
OpenSlide Python is a Python interface to the OpenSlide library.
68

79
OpenSlide_ is a C library that provides a simple interface for reading

openslide/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
This module is an implementation detail. The package version should be
2323
obtained from openslide.__version__."""
2424

25-
__version__ = u'1.1.1'
25+
__version__ = u'1.1.2'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
_long_description = _fh.read()
1111

1212
setup(
13-
name='openslide-python',
13+
name='openslide-wrapper',
1414
version=__version__,
1515
packages=[
1616
'openslide',

0 commit comments

Comments
 (0)