Skip to content
Snippets Groups Projects
Commit c534e28c authored by Donald Stufft's avatar Donald Stufft
Browse files

Run the full make process

parent 52ffad23
No related branches found
No related tags found
No related merge requests found
...@@ -95,9 +95,11 @@ class build_clib(_build_clib): ...@@ -95,9 +95,11 @@ class build_clib(_build_clib):
return ["sodium"] return ["sodium"]
def run(self): def run(self):
build_temp = os.path.abspath(self.build_temp)
# Ensure our temporary build directory exists # Ensure our temporary build directory exists
try: try:
os.makedirs(os.path.abspath(self.build_temp)) os.makedirs(build_temp)
except IOError: except IOError:
pass pass
...@@ -111,14 +113,17 @@ class build_clib(_build_clib): ...@@ -111,14 +113,17 @@ class build_clib(_build_clib):
"--disable-debug", "--disable-dependency-tracking", "--disable-debug", "--disable-dependency-tracking",
"--prefix", os.path.abspath(self.build_clib), "--prefix", os.path.abspath(self.build_clib),
], ],
cwd=os.path.abspath(self.build_temp), cwd=build_temp,
) )
# Build the library # Build the library
subprocess.check_call( subprocess.check_call(["make"], cwd=build_temp)
["make", "install"],
cwd=os.path.abspath(self.build_temp), # Check the build library
) subprocess.check_call(["make", "check"], cwd=build_temp)
# Install the built library
subprocess.check_call(["make", "install"], cwd=build_temp)
class build_ext(_build_ext): class build_ext(_build_ext):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment