Commit 4f9fdd3f authored by Valentin Buck's avatar Valentin Buck
Browse files

Too fast

parent 12f4e60a
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -12,10 +12,10 @@ def process_rust(path, module):
    else:
        subprocess.Popen(["cargo", "build", "--release"], cwd=cwd).wait()
        #subprocess.Popen(["cargo", "build", "--release", "--target", "x86_64-pc-windows-gnu"] , cwd=cwd).wait()
        subprocess.Popen(["bash", "-c", 'WINEPATH=~/python64 echo "set RUSTFLAGS=-L Z:/root/python64 && cargo build --release" | WINEPATH=~/python64 wine cmd'])
        subprocess.Popen(["ls", "target"], cwd=cwd)
        subprocess.Popen(["ls", "target", "release"], cwd=cwd)
        subprocess.Popen(["find", "."],cwd=cwd)
        subprocess.Popen(["bash", "-c", 'WINEPATH=~/python64 echo "set RUSTFLAGS=-L Z:/root/python64 && cargo build --release" | WINEPATH=~/python64 wine cmd']).wait()
        subprocess.Popen(["ls", "target"], cwd=cwd).wait()
        subprocess.Popen(["ls", "target", "release"], cwd=cwd).wait()
        subprocess.Popen(["find", "."],cwd=cwd).wait()
        shutil.copyfile(os.path.join(path,module,"target","release", module + ".dll"),os.path.join(path,module,"target","release", module + ".pyd"))
        return [os.path.join(path,module,"target","release", module),os.path.join(path,module,"target" ,"release", module + ".pyd")]