Skip to content

Commit

Permalink
[rm_skycoin] refs skycoin#42 Print debug extension folder contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevEclipse committed Jul 17, 2018
1 parent 825ce9d commit f99cca8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def build_extension(self, ext):
# Handle unspecial extensions with the parent class' method
super(skycoin_build_ext, self).build_extension(ext)
else:
files = os.listdir(script_dirname)
sys.stderr.write("files before: " + str(files))

make_path = os.path.realpath(script_dirname)

Expand All @@ -37,12 +39,16 @@ def build_extension(self, ext):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True)
sys.stderr.write("files after: " + str(files))
stdout, stderr = make_process.communicate()

print("stdout:")
sys.stderr.write(str(stdout))
if len(stderr) > 0:
print("stderr:")
sys.stderr.write(str(stderr))
files = os.listdir(script_dirname)

# After making the library build the c library's
# python interface with the parent build_extension method
super(skycoin_build_ext, self).build_extension(ext)
Expand Down

0 comments on commit f99cca8

Please sign in to comment.