Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbb4a97

Browse files
committed
Merge branch 'master' into debian
2 parents 4a9269d + 2743825 commit fbb4a97

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
#!/usr/bin/python
22

3-
from distutils.core import setup
3+
from distutils.core import setup
4+
from distutils.command.clean import clean
45
import subprocess
56

67
subprocess.call( ['make', 'README', 'README.org'] )
78

89

10+
class MoreClean(clean):
11+
def run(self):
12+
clean.run(self)
13+
subprocess.call( ['make', 'clean'] )
914

1015

1116
setup(name = 'gnuplotlib',
@@ -15,4 +20,5 @@
1520
url = 'http://github.com/dkogan/gnuplotlib',
1621
description = 'Gnuplot-based plotting for numpy',
1722
license = 'LGPL-3+',
18-
py_modules = ['gnuplotlib'] )
23+
py_modules = ['gnuplotlib'],
24+
cmdclass = {'clean': MoreClean})

0 commit comments

Comments
 (0)