Add a umap entry point, so we can pip install umap

This commit is contained in:
Yohan Boniface 2016-09-10 08:26:48 +02:00
parent 86c3fdc334
commit 5f403a3d80
2 changed files with 20 additions and 1 deletions

View file

@ -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
View 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()