Lines 1-25
Link Here
|
1 |
--- setup.py.orig 2014-05-18 14:37:42.190089675 +0100 |
1 |
--- setup.py.orig 2016-03-05 09:59:07.250354000 +0100 |
2 |
+++ setup.py 2014-05-18 14:41:15.084751008 +0100 |
2 |
+++ setup.py 2016-03-05 10:02:48.940832000 +0100 |
3 |
@@ -22,7 +22,6 @@ |
3 |
@@ -23,7 +23,6 @@ |
4 |
|
4 |
import sys |
5 |
import sys, os |
5 |
import os |
6 |
from setuptools import setup, Extension |
6 |
from setuptools import setup, Extension |
7 |
-from setuptools.command.test import test |
7 |
-from setuptools.command.test import test |
8 |
from setuptools.command.install import install |
8 |
from setuptools.command.install import install |
9 |
from setuptools.command.sdist import sdist |
9 |
from setuptools.command.sdist import sdist |
|
|
10 |
from distutils.command.build_scripts import build_scripts |
11 |
@@ -35,6 +34,9 @@ |
12 |
sys.exit(1) |
10 |
|
13 |
|
11 |
@@ -34,6 +33,10 @@ |
|
|
12 |
|
13 |
incdir_list = libdir_list = None |
14 |
incdir_list = libdir_list = None |
14 |
|
|
|
15 |
+LOCALBASE = os.environ.get("LOCALBASE", "/usr/local") |
15 |
+LOCALBASE = os.environ.get("LOCALBASE", "/usr/local") |
16 |
+incdir_list = ['%s/include' % LOCALBASE] |
16 |
+incdir_list = ['%s/include' % LOCALBASE] |
17 |
+libdir_list = ['%s/lib/' % LOCALBASE] |
17 |
+libdir_list = ['%s/lib/' % LOCALBASE] |
18 |
+ |
18 |
|
19 |
if os.name == 'posix': |
19 |
if os.name == 'posix': |
20 |
LIBRSYNC_DIR = os.environ.get('LIBRSYNC_DIR', '') |
20 |
LIBRSYNC_DIR = os.environ.get('LIBRSYNC_DIR', '') |
21 |
args = sys.argv[:] |
21 |
@@ -47,15 +49,9 @@ |
22 |
@@ -45,17 +48,9 @@ |
|
|
23 |
incdir_list = [os.path.join(LIBRSYNC_DIR, 'include')] |
22 |
incdir_list = [os.path.join(LIBRSYNC_DIR, 'include')] |
24 |
libdir_list = [os.path.join(LIBRSYNC_DIR, 'lib')] |
23 |
libdir_list = [os.path.join(LIBRSYNC_DIR, 'lib')] |
25 |
|
24 |
|
Lines 32-48
Link Here
|
32 |
- 'README', |
31 |
- 'README', |
33 |
- 'README-REPO', |
32 |
- 'README-REPO', |
34 |
- 'README-LOG', |
33 |
- 'README-LOG', |
35 |
- 'tarfile-LICENSE', |
|
|
36 |
- 'tarfile-CHANGES', |
37 |
- 'CHANGELOG']), |
34 |
- 'CHANGELOG']), |
38 |
] |
35 |
] |
39 |
|
36 |
|
40 |
top_dir = os.path.dirname(os.path.abspath(__file__)) |
37 |
top_dir = os.path.dirname(os.path.abspath(__file__)) |
41 |
@@ -70,45 +65,8 @@ |
38 |
@@ -69,48 +65,9 @@ |
|
|
39 |
('share/locale/%s/LC_MESSAGES' % lang, |
42 |
["po/%s/duplicity.mo" % lang])) |
40 |
["po/%s/duplicity.mo" % lang])) |
43 |
|
41 |
|
44 |
|
42 |
- |
45 |
-class TestCommand(test): |
43 |
-class TestCommand(test): |
|
|
44 |
- |
46 |
- def run(self): |
45 |
- def run(self): |
47 |
- # Make sure all modules are ready |
46 |
- # Make sure all modules are ready |
48 |
- build_cmd = self.get_finalized_command("build_py") |
47 |
- build_cmd = self.get_finalized_command("build_py") |
Lines 53-59
Link Here
|
53 |
- |
52 |
- |
54 |
- # make symlinks for test data |
53 |
- # make symlinks for test data |
55 |
- if build_cmd.build_lib != top_dir: |
54 |
- if build_cmd.build_lib != top_dir: |
56 |
- for path in ['testfiles.tar.gz', 'testtar.tar', 'gnupg']: |
55 |
- for path in ['testfiles.tar.gz', 'gnupg']: |
57 |
- src = os.path.join(top_dir, 'testing', path) |
56 |
- src = os.path.join(top_dir, 'testing', path) |
58 |
- target = os.path.join(build_cmd.build_lib, 'testing', path) |
57 |
- target = os.path.join(build_cmd.build_lib, 'testing', path) |
59 |
- try: |
58 |
- try: |
Lines 69-74
Link Here
|
69 |
- |
68 |
- |
70 |
- |
69 |
- |
71 |
class InstallCommand(install): |
70 |
class InstallCommand(install): |
|
|
71 |
|
72 |
def run(self): |
72 |
def run(self): |
73 |
- # Normally, install will call build(). But we want to delete the |
73 |
- # Normally, install will call build(). But we want to delete the |
74 |
- # testing dir between building and installing. So we manually build |
74 |
- # testing dir between building and installing. So we manually build |
Lines 84-110
Link Here
|
84 |
install.run(self) |
84 |
install.run(self) |
85 |
|
85 |
|
86 |
|
86 |
|
87 |
@@ -133,11 +91,7 @@ |
87 |
@@ -178,11 +135,7 @@ |
88 |
maintainer_email="kenneth@loafman.com", |
|
|
89 |
url="http://duplicity.nongnu.org/index.html", |
88 |
url="http://duplicity.nongnu.org/index.html", |
90 |
packages = ['duplicity', |
89 |
packages=['duplicity', |
91 |
- 'duplicity.backends', |
90 |
'duplicity.backends', |
92 |
- 'testing', |
91 |
- 'duplicity.backends.pyrax_identity', |
93 |
- 'testing.functional', |
92 |
- 'testing', |
94 |
- 'testing.overrides', |
93 |
- 'testing.functional', |
95 |
- 'testing.unit'], |
94 |
- 'testing.overrides', |
96 |
+ 'duplicity.backends'], |
95 |
- 'testing.unit'], |
97 |
package_dir = {"duplicity" : "duplicity", |
96 |
+ 'duplicity.backends.pyrax_identity'], |
98 |
"duplicity.backends" : "duplicity/backends",}, |
97 |
package_dir={"duplicity": "duplicity", |
99 |
ext_modules = [Extension("duplicity._librsync", |
98 |
"duplicity.backends": "duplicity/backends", }, |
100 |
@@ -147,9 +101,6 @@ |
99 |
ext_modules=[Extension("duplicity._librsync", |
101 |
libraries=["rsync"])], |
100 |
@@ -193,10 +146,7 @@ |
102 |
scripts = ['bin/rdiffdir', 'bin/duplicity'], |
101 |
scripts=['bin/rdiffdir', 'bin/duplicity'], |
103 |
data_files = data_files, |
102 |
data_files=data_files, |
104 |
- tests_require = ['lockfile', 'mock'], |
103 |
install_requires=['lockfile'], |
105 |
- test_suite = 'testing', |
104 |
- tests_require=['lockfile', 'mock', 'pexpect'], |
|
|
105 |
- test_suite='testing', |
106 |
- cmdclass={'test': TestCommand, |
106 |
- cmdclass={'test': TestCommand, |
107 |
- 'install': InstallCommand, |
107 |
- 'install': InstallCommand, |
108 |
+ cmdclass={'install': InstallCommand, |
108 |
+ cmdclass={'install': InstallCommand, |
109 |
'sdist': SDistCommand}, |
109 |
'sdist': SDistCommand, |
|
|
110 |
'build_scripts': BSCommand}, |
110 |
) |
111 |
) |