From a6b032e4ad569835de4bf7556ab4908f6d26cef8 Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Sat, 3 Oct 2020 17:17:05 +0200 Subject: [PATCH] Switch to setuptools --- setup.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index 2b9b0d6..df4b9f4 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,7 @@ import sys import os -from distutils.core 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 +from setuptools import setup # 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 @@ -30,7 +25,6 @@ setup( py_modules = [ 'bottle_sqlite' ], - data_files = [("", ["LICENSE"])], requires = [ 'bottle (>=0.12)' ], @@ -42,6 +36,5 @@ setup( 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python Modules' - ], - cmdclass = {'build_py': build_py} + ] )