Commit 522ec5a9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

setup.py: add a workaround to prevent the following error in build with old setuptools :

error: [Errno 21] Is a directory: 're6st/cli'
parent 33ac2461
......@@ -20,6 +20,8 @@ def copy_file(self, infile, outfile, *args, **kw):
return outfile, 1
elif isinstance(self, build_py) and \
os.stat(infile).st_mode & stat.S_IEXEC:
if os.path.isdir(infile) and os.path.isdir(outfile):
return (outfile, 0)
# Adjust interpreter of OpenVPN hooks.
with open(infile) as src:
first_line = src.readline()
......
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