Skip to content
Snippets Groups Projects
Commit 0b8b9e64467c authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore: setup.py for python3

parent 60c646503b86
No related branches found
No related tags found
No related merge requests found
Pipeline #119657 failed
......@@ -25,7 +25,8 @@
import os
import sys
import shutil
from os.path import isdir, exists, join, walk, dirname
from os import walk
from os.path import isdir, exists, join, dirname
try:
if os.environ.get('NO_SETUPTOOLS'):
......@@ -74,7 +75,7 @@
for entry in ("__depends__",): # "__recommends__"):
requires.update(pkginfo.get(entry, {}))
install_requires = [("%s %s" % (d, v and v or "")).strip()
for d, v in requires.iteritems()]
for d, v in requires.items()]
else:
install_requires = []
......@@ -140,7 +141,7 @@
shutil.copy2(src, dest)
try:
os.mkdir(to_dir)
except OSError, ex:
except OSError as ex:
# file exists ?
import errno
if ex.errno != errno.EEXIST:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment