1diff -Naur a/setup.py b/setup.py
2--- a/setup.py 2021-04-24 12:53:18.300255006 -0500
3+++ b/setup.py 2021-04-24 12:47:51.619052574 -0500
4@@ -15,29 +15,6 @@
5 from distutils.command.install import install
6 import os,sys,shutil
7
8-class GurobiClean(Command):
9- description = "remove the build directory"
10- user_options = []
11- def initialize_options(self):
12- self.cwd = None
13- def finalize_options(self):
14- self.cwd = os.path.dirname(os.path.realpath(__file__))
15- def run(self):
16- build_dir = os.path.join(os.getcwd(), "build")
17- if os.path.exists(build_dir):
18- print('removing %s' % build_dir)
19- shutil.rmtree(build_dir)
20-
21-class GurobiInstall(install):
22-
23- # Calls the default run command, then deletes the build area
24- # (equivalent to "setup clean --all").
25- def run(self):
26- install.run(self)
27- c = GurobiClean(self.distribution)
28- c.finalize_options()
29- c.run()
30-
31 License = """
32 This software is covered by the Gurobi End User License Agreement.
33 By completing the Gurobi installation process and using the software,
34@@ -78,7 +55,5 @@
35 packages = ['gurobipy'],
36 package_dir={'gurobipy' : srcpath },
37 package_data = {'gurobipy' : [srcfile] },
38- cmdclass={'install' : GurobiInstall,
39- 'clean' : GurobiClean }
40 )
41