From a7bb9bd2bbccf937a066a0c19e83266c900e54de Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Tue, 26 Jan 2010 17:27:33 +0100 Subject: [PATCH] setup.py --- setup.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index cc18757c..c3c9aba5 100644 --- a/setup.py +++ b/setup.py @@ -20,14 +20,21 @@ if uver != "25": from distutils.core import setup from distutils.command.build import build as _build +from distutils.command.install import install as _install +from distutils.command.install_data import install_data +print "PREFIX:",sys.prefix + +class install(_install): + def run(self): + os.system(make_cmd) class build(_build): def run(self): os.system(make_cmd) -datafiles = [ ('bin', ['uwsgi']) ] +datafiles = [ ('bin', [bin_name]) ] @@ -39,7 +46,7 @@ setup(name='uWSGI', url='http://projects.unbit.it/uwsgi/', license='GPL2', data_files = datafiles, - cmdclass = { 'build': build } + cmdclass = { 'build': build, 'install': install } )