Gentoo Archives: gentoo-commits

From: "Marien Zwart (marienz)" <marienz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pyalsa/files: pyalsa-1.0.25-no-build-symlinks.patch
Date: Sat, 25 Feb 2012 23:49:07
Message-Id: 20120225234855.DC9BE2004B@flycatcher.gentoo.org
1 marienz 12/02/25 23:48:55
2
3 Added: pyalsa-1.0.25-no-build-symlinks.patch
4 Log:
5 Apply a fix from Arfrever on freenode to make installation with pypy work.
6
7 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-python/pyalsa/files/pyalsa-1.0.25-no-build-symlinks.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyalsa/files/pyalsa-1.0.25-no-build-symlinks.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyalsa/files/pyalsa-1.0.25-no-build-symlinks.patch?rev=1.1&content-type=text/plain
14
15 Index: pyalsa-1.0.25-no-build-symlinks.patch
16 ===================================================================
17 The build system creates some symlinks that are useful when developing
18 but get in the way when we install for more than one python. Remove
19 these.
20
21 Not a patch for upstream, as it makes development slightly more
22 complicated.
23
24 Patch by Arfrever.
25
26 --- setup.py
27 +++ setup.py
28 @@ -57,12 +57,3 @@
29 packages=['pyalsa'],
30 scripts=[]
31 )
32 -
33 -uname = os.uname()
34 -a = 'build/lib.%s-%s-%s' % (uname[0].lower(), uname[4], sys.version[:3])
35 -for f in ['alsacard.so', 'alsacontrol.so', 'alsahcontrol.so', 'alsamixer.so', 'alsaseq.so']:
36 - if not os.path.exists('pyalsa/%s' % f):
37 - a = '../build/lib.%s-%s-%s/pyalsa/%s' % (uname[0].lower(),
38 - uname[4], sys.version[:3], f)
39 - print a, f
40 - os.symlink(a, 'pyalsa/%s' % f)