We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0fcaa commit d66f7a5Copy full SHA for d66f7a5
CHANGES.rst
@@ -1,6 +1,12 @@
1
CHANGES
2
=======
3
4
+0.6.1 (2017-06-30)
5
+------------------
6
+
7
+- Support `CARGO_TARGET_DIR` variable #14
8
9
10
0.6.0 (2017-06-20)
11
------------------
12
setuptools_rust/build.py
@@ -121,7 +121,13 @@ def build_extension(self, ext):
121
else:
122
suffix = "release"
123
124
- target_dir = os.path.join(os.path.dirname(ext.path), "target/", suffix)
+ # location of files
125
+ dir = os.environ.get('CARGO_TARGET_DIR', '').strip()
126
+ if dir:
127
+ target_dir = os.path.join(dir, suffix)
128
+ else:
129
+ target_dir = os.path.join(
130
+ os.path.dirname(ext.path), "target/", suffix)
131
132
if sys.platform == "win32":
133
wildcard_so = "*.dll"
0 commit comments