mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-30 04:47:28 -07:00
28 lines
682 B
Diff
28 lines
682 B
Diff
--- pyalsa-1.1.6/setup.py
|
|
+++ pyalsa-1.1.6/setup.py
|
|
@@ -70,24 +70,3 @@
|
|
'alsamixer',
|
|
'alsaseq'
|
|
]
|
|
-
|
|
-uname = os.uname()
|
|
-dir = 'build/lib.%s-%s-%s/pyalsa' % (uname[0].lower(), uname[4], sys.version[:3])
|
|
-files = os.path.exists(dir) and os.listdir(dir) or []
|
|
-for f in SOFILES:
|
|
- path = ''
|
|
- for f2 in files:
|
|
- if f2.startswith(f + '.') and f2.endswith('.so'):
|
|
- path = dir + '/' + f2
|
|
- break
|
|
- if not path or not os.path.exists(path):
|
|
- continue
|
|
- p = 'pyalsa/%s.so' % f
|
|
- print("%s -> %s" % (p, path))
|
|
- try:
|
|
- st = os.lstat(p)
|
|
- if stat.S_ISLNK(st.st_mode):
|
|
- os.remove(p)
|
|
- except:
|
|
- pass
|
|
- os.symlink('../' + path, 'pyalsa/%s.so' % f)
|