Switch to setuptools
This commit is contained in:
parent
4bd67e4c32
commit
a6b032e4ad
11
setup.py
11
setup.py
|
@ -2,12 +2,7 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
from distutils.core import setup
|
from setuptools import setup
|
||||||
|
|
||||||
try:
|
|
||||||
from distutils.command.build_py import build_py_2to3 as build_py
|
|
||||||
except ImportError:
|
|
||||||
from distutils.command.build_py import build_py
|
|
||||||
|
|
||||||
# This ugly hack executes the first few lines of the module file to look up some
|
# This ugly hack executes the first few lines of the module file to look up some
|
||||||
# common variables. We cannot just import the module because it depends on other
|
# common variables. We cannot just import the module because it depends on other
|
||||||
|
@ -30,7 +25,6 @@ setup(
|
||||||
py_modules = [
|
py_modules = [
|
||||||
'bottle_sqlite'
|
'bottle_sqlite'
|
||||||
],
|
],
|
||||||
data_files = [("", ["LICENSE"])],
|
|
||||||
requires = [
|
requires = [
|
||||||
'bottle (>=0.12)'
|
'bottle (>=0.12)'
|
||||||
],
|
],
|
||||||
|
@ -42,6 +36,5 @@ setup(
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules'
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
||||||
],
|
]
|
||||||
cmdclass = {'build_py': build_py}
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user