Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
email
Commits
0b8b9e64467c
Commit
3b3240a0
authored
Apr 05, 2022
by
Laurent Peuch
Browse files
chore: setup.py for python3
parent
60c646503b86
Pipeline
#119657
failed with stage
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
0b8b9e64
...
...
@@ -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
.
iter
items
()]
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment