Commit 450e93bc authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d4e8180b
......@@ -28,6 +28,7 @@ from subprocess import Popen, PIPE
import os
import sys
from errno import EEXIST
# tell cython to resolve `cimport wendelin.*` modules hierarchy starting at top-level.
......@@ -187,8 +188,13 @@ class build_ext(_build_ext):
# copy wcfs/wcfs built from wcfs.go by make into build/lib.linux-x86_64-2.7/...
# so that py packaging tools see built wcfs.go as part of wendelin/wcfs package.
copy_file('wcfs/wcfs', os.path.join(self.build_lib, 'wendelin/wcfs/wcfs'),
verbose=self.verbose, dry_run=self.dry_run)
dst = os.path.join(self.build_lib, 'wendelin/wcfs')
try:
os.makedirs(dst)
except OSError as e:
if e.errno != EEXIST:
raise
copy_file('wcfs/wcfs', dst, verbose=self.verbose, dry_run=self.dry_run)
......
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