From 59cdd0df19b3d8b0d4d347de81f6cf24e066440d Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Mon, 17 Dec 2018 08:28:43 -0800 Subject: [PATCH] Cleanup setup scripts * Removes refernce to myucp2 * Adds a few patterns to .gitignore for inplace install --- .gitignore | 7 ++++++- pybind/setup.py | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 82efbf4b5d2..9fdeedc6661 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ -*.*~ \ No newline at end of file +*.*~ +pybind/build +pybind/call_myucp.c +pybind/call_myucp.*.so +pybind/*.a +pybind/*.o diff --git a/pybind/setup.py b/pybind/setup.py index 9edf1f99f84..d12422921cf 100644 --- a/pybind/setup.py +++ b/pybind/setup.py @@ -24,8 +24,7 @@ print("building libmyucp.a") print("getcwd: " + str(os.getcwd())) assert os.system("gcc -shared -fPIC -c myucp.c -o myucp.o") == 0 - assert os.system("gcc -shared -fPIC -c myucp2.c -o myucp2.o") == 0 - assert os.system("ar rcs libmyucp.a myucp.o myucp2.o") == 0 + assert os.system("ar rcs libmyucp.a myucp.o") == 0 except: if not os.path.exists("libmyucp.a"): print("Error building external library, please create libmyucp.a manually.")