Source: python-kyotocabinet
Version: 1.22-1
Severity: important
User: debian-pyt...@lists.debian.org
Usertags: python3.3
python-kyotocabinet FTBFS if built against Python 3.3:
| performing copy and merge:
| Traceback (most recent call last):
| File "kctest.py", line 1015, in <module>
| exit(main())
| File "kctest.py", line 37, in main
| rv = runmisc()
| File "kctest.py", line 164, in runmisc
| rv = procmisc(path)
| File "kctest.py", line 982, in procmisc
| shutil.rmtree(copypath, True)
| File "/usr/lib/python3.3/shutil.py", line 456, in rmtree
| "Not a directory: '{}'".format(path))
| NotADirectoryError: [Errno 20] Not a directory: 'casket.kch.1.kch'
| make[2]: *** [check-each] Error 1
This appears to be a regression in the Python interpreter:
http://bugs.python.org/issue15872
However, if I work-around this issue (see the attachment), the package
still FTBFS:
| dh binary --with python3 --parallel
| dh_testroot -O--parallel
| dh_prep -O--parallel
| dh_installdirs -O--parallel
| dh_install -O--parallel
| cp: cannot stat `debian/tmp/kyotocabinet.cpython-32mu.so': No such file or
directory
| dh_install: cp -a debian/tmp/kyotocabinet.cpython-32mu.so
debian/python3-kyotocabinet/usr/lib/python3/dist-packages// returned exit code 1
--
Jakub Wilk
--- a/kctest.py
+++ b/kctest.py
@@ -979,7 +979,10 @@
dberrprint(srcdb, "DB::open")
err = True
for copypath in copypaths:
- shutil.rmtree(copypath, True)
+ try:
+ shutil.rmtree(copypath, True)
+ except OSError as e:
+ pass
try:
os.remove(copypath)
except OSError as e:
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team