Skip to content

Allow disabling fcntl (and use softfilelock) with environment variable #289

Open
@leoleoasd

Description

@leoleoasd

I'm using a cluster and the home directory is a network volume that has fcntl disabled.

else: # pragma: win32 no cover
try:
import fcntl
except ImportError:
pass
else:
has_fcntl = True

filelock currently selects fcntl whenever the library is available, ignoring its availability on the file system.

NotImplementedError: FileSystem does not appear to support flock; user SoftFileLock instead

Adding an environment or some other way to control this behavior would be better.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions