File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,17 @@ cppimport.settings['lock_timeout'] = 10*60 # 10 mins
175
175
You should not use ` force_rebuild ` when importing concurrently.
176
176
177
177
### Acquiring the lock hangs or times out unexpectedly - what's going on?
178
- Certain filesystems do not support file locking. You can disable the lock
179
- in the settings:
178
+ Certain platforms (e.g. those running
179
+ a Data Virtualization Service, DVS) do not support file locking. If you're on Linux with access to ` flock ` , you can test whether
180
+ locking is supported (credit to [ this page] ( https://help.univention.com/t/howto-verify-the-mounted-filesystem-supports-file-locking/10149 ) ):
181
+
182
+ ``` bash
183
+ touch testfile
184
+ flock ./testfile true && echo ok || echo nok
185
+ ```
186
+
187
+ If locking is not supported, you can disable the file lock in
188
+ the cppimport global settings:
180
189
181
190
``` python
182
191
cppimport.settings[' use_filelock' ] = False
You can’t perform that action at this time.
0 commit comments