Commit 3b3240a0 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore: setup.py for python3

parent 60c646503b86
Pipeline #119657 failed with stage
in 43 seconds
......@@ -25,7 +25,8 @@ __docformat__ = "restructuredtext en"
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 @@ if USE_SETUPTOOLS:
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 @@ def export(from_dir, to_dir,
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment