|
@@ -11,11 +11,6 @@ import sys
|
|
import github2pypi
|
|
import github2pypi
|
|
|
|
|
|
|
|
|
|
-if github2pypi.__file__ is None:
|
|
|
|
- print('Please update submodule:\n\n\tgit submodule update --init')
|
|
|
|
- sys.exit(1)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
PY3 = sys.version_info[0] == 3
|
|
PY3 = sys.version_info[0] == 3
|
|
PY2 = sys.version_info[0] == 2
|
|
PY2 = sys.version_info[0] == 2
|
|
assert PY3 or PY2
|
|
assert PY3 or PY2
|
|
@@ -100,6 +95,11 @@ if sys.argv[1] == 'release':
|
|
sys.exit(0)
|
|
sys.exit(0)
|
|
|
|
|
|
|
|
|
|
|
|
+if not hasattr(github2pypi, '__file__'):
|
|
|
|
+ print('Please update submodule:\n\n\tgit submodule update --init')
|
|
|
|
+ sys.exit(1)
|
|
|
|
+
|
|
|
|
+
|
|
with open('README.md') as f:
|
|
with open('README.md') as f:
|
|
long_description = github2pypi.replace_url(
|
|
long_description = github2pypi.replace_url(
|
|
slug='wkentaro/labelme', content=f.read()
|
|
slug='wkentaro/labelme', content=f.read()
|