From c534e28cf571af4778eca92f883e8587b12b1602 Mon Sep 17 00:00:00 2001 From: Donald Stufft <donald@stufft.io> Date: Sun, 6 Oct 2013 15:44:24 -0400 Subject: [PATCH] Run the full make process --- setup.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index adfccba5..278715af 100644 --- a/setup.py +++ b/setup.py @@ -95,9 +95,11 @@ class build_clib(_build_clib): return ["sodium"] def run(self): + build_temp = os.path.abspath(self.build_temp) + # Ensure our temporary build directory exists try: - os.makedirs(os.path.abspath(self.build_temp)) + os.makedirs(build_temp) except IOError: pass @@ -111,14 +113,17 @@ class build_clib(_build_clib): "--disable-debug", "--disable-dependency-tracking", "--prefix", os.path.abspath(self.build_clib), ], - cwd=os.path.abspath(self.build_temp), + cwd=build_temp, ) # Build the library - subprocess.check_call( - ["make", "install"], - cwd=os.path.abspath(self.build_temp), - ) + subprocess.check_call(["make"], cwd=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): -- GitLab