summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorSteve Chaplin <stevech1097@yahoo.com.au>2009-08-30 10:48:02 +0800
committerSteve Chaplin <stevech1097@yahoo.com.au>2009-08-30 10:48:02 +0800
commit021061b9faffb888bbc13279114e925b2821d810 (patch)
treeb475f0aad4471646dfe1605d9b83ad2a1348b778 /setup.py
parent88080d88056c405131a47ea5023437c1310587e2 (diff)
downloadpy2cairo-021061b9faffb888bbc13279114e925b2821d810.tar.gz
Add fix to setup.py to install __init__.py
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index da67e69..b3b1436 100755
--- a/setup.py
+++ b/setup.py
@@ -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']),
+ ],
)