From f91b56bca99eb4171f937ae57e157c4bd45c513f Mon Sep 17 00:00:00 2001 From: pat <pat@lucy.local> Date: Tue, 7 Jun 2016 17:01:16 +0200 Subject: [PATCH] creating /usr/local/lib folder if doesn't exist --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d93d9ad..c40ce57 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ class CustomBuild(build): sys.stderr.write("Plateform '%s' not supported...\n" % sys.platform) sys.exit(1) - command = "cd %s && cp %s /usr/local/lib" % (os.path.join(UNITEX_INC, "bin"), library) + command = "mkdir -p /usr/local/lib && cd %s && cp %s /usr/local/lib" % (os.path.join(UNITEX_INC, "bin"), library) try: process = subprocess.Popen(command, stderr=subprocess.PIPE, shell=True) -- GitLab