1 |
mgorny 14/05/29 22:00:54 |
2 |
|
3 |
Added: cracklib-2.9.1-setup.py-srcdir.patch |
4 |
Log: |
5 |
Fix installing .py files. |
6 |
|
7 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-libs/cracklib/files/cracklib-2.9.1-setup.py-srcdir.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/files/cracklib-2.9.1-setup.py-srcdir.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/files/cracklib-2.9.1-setup.py-srcdir.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: cracklib-2.9.1-setup.py-srcdir.patch |
16 |
=================================================================== |
17 |
From 70909dd3d30a13bb0406ca76feea49f05b8b978d Mon Sep 17 00:00:00 2001 |
18 |
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
19 |
Date: Thu, 29 May 2014 23:57:32 +0200 |
20 |
Subject: [PATCH] Fix paths in setup.py to support out-of-source builds. |
21 |
|
22 |
--- |
23 |
python/setup.py.in | 5 +++-- |
24 |
1 file changed, 3 insertions(+), 2 deletions(-) |
25 |
|
26 |
diff --git a/python/setup.py.in b/python/setup.py.in |
27 |
index 4a258a0..4c70de4 100644 |
28 |
--- a/python/setup.py.in |
29 |
+++ b/python/setup.py.in |
30 |
@@ -23,8 +23,8 @@ from setuptools import setup, Extension, find_packages |
31 |
|
32 |
extensions = [ |
33 |
Extension("_cracklib", |
34 |
- ["_cracklib.c"], |
35 |
- include_dirs = ["@top_builddir@/lib"], |
36 |
+ ["@srcdir@/_cracklib.c"], |
37 |
+ include_dirs = ["@top_srcdir@/lib"], |
38 |
libraries = ["crack"], |
39 |
library_dirs = ["@top_builddir@/lib/.libs"]), |
40 |
] |
41 |
@@ -43,6 +43,7 @@ convenience functions. |
42 |
url="http://cracklib.sourceforge.net/", |
43 |
license="GPLv2+", |
44 |
py_modules=['cracklib', 'test_cracklib'], |
45 |
+ package_dir={'': '@srcdir@'}, |
46 |
ext_modules=extensions, |
47 |
zip_safe=False, |
48 |
classifiers=[ |
49 |
-- |
50 |
2.0.0 |