chiark / gitweb /
include prefix in data_files install path so it installs correctly
authorHans-Christoph Steiner <hans@eds.org>
Wed, 2 Apr 2014 18:41:20 +0000 (14:41 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 2 Apr 2014 21:54:21 +0000 (17:54 -0400)
setuptools wants to stick any relative install path in data_files into the
.egg package.  Things are not setup to use the egg now.  We might want to
consider using sticking files into the egg via pkg_resource in the future.

setup.py

index 11e70c653af1e02dca4dfd0a5f290604c5aa39c2..898c6a92accbf6c24b09c597d227ca92b14acf85 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
 #!/usr/bin/env python2
 
 from setuptools import setup
+import sys
 
 setup(name='fdroidserver',
       version='0.1',
@@ -12,7 +13,7 @@ setup(name='fdroidserver',
       packages=['fdroidserver'],
       scripts=['fdroid', 'fd-commit'],
       data_files=[
-        ('share/doc/fdroidserver/examples',
+        (sys.prefix + '/share/doc/fdroidserver/examples',
          [ 'buildserver/config.buildserver.py',
            'examples/config.py',
            'examples/makebs.config.py',