diff options
author | Steve Chaplin <stevech1097@yahoo.com.au> | 2009-08-30 10:48:02 +0800 |
---|---|---|
committer | Steve Chaplin <stevech1097@yahoo.com.au> | 2009-08-30 10:48:02 +0800 |
commit | 021061b9faffb888bbc13279114e925b2821d810 (patch) | |
tree | b475f0aad4471646dfe1605d9b83ad2a1348b778 /setup.py | |
parent | 88080d88056c405131a47ea5023437c1310587e2 (diff) | |
download | py2cairo-021061b9faffb888bbc13279114e925b2821d810.tar.gz |
Add fix to setup.py to install __init__.py
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -3,7 +3,9 @@ import distutils.core as dic import distutils.dir_util as dut import distutils.file_util as fut +import distutils.sysconfig as dsy import io +import os import subprocess import sys @@ -105,6 +107,10 @@ dic.setup( version = pycairo_version, description = "python interface for cairo", ext_modules = [cairo], - data_files=[('include/pycairo',['src/pycairo.h']), - ('lib/pkgconfig',[pkgconfig_file])], + data_files = [ + ('include/pycairo', ['src/pycairo.h']), + ('lib/pkgconfig', [pkgconfig_file]), + (os.path.join(dsy.get_python_lib(), 'cairo'), + ['src/__init__.py']), + ], ) |