Add a umap entry point, so we can pip install umap
This commit is contained in:
parent
86c3fdc334
commit
5f403a3d80
2 changed files with 20 additions and 1 deletions
3
setup.py
3
setup.py
|
@ -38,4 +38,7 @@ setup(
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
],
|
],
|
||||||
|
entry_points={
|
||||||
|
'console_scripts': ['umap=umap.bin:main'],
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
16
umap/bin/__init__.py
Normal file
16
umap/bin/__init__.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
import os
|
||||||
|
|
||||||
|
from django.core import management
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
os.environ.setdefault(
|
||||||
|
"DJANGO_SETTINGS_MODULE",
|
||||||
|
"umap.settings"
|
||||||
|
)
|
||||||
|
management.execute_from_command_line()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
Loading…
Reference in a new issue