-
-
Notifications
You must be signed in to change notification settings - Fork 109
335 create lockfile #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
335 create lockfile #357
Conversation
16a5e15
to
0a58cc9
Compare
0a58cc9
to
adacb45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
3330ca3
to
3fcb454
Compare
2260924
to
f331a60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. This should also be manually tested with Yakut with PYCYPHAL_LOGLEVEL=DEBUG
: start two Yakut processes simultaneously without the uavcan
namespace compiled, and make sure only one of them does the compilation while the other is waiting.
pycyphal/dsdl/_compiler.py
Outdated
output_directory=output_directory, | ||
) as lockfile: | ||
if lockfile: | ||
# Generate code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Generate code |
pycyphal/dsdl/_lockfile.py
Outdated
if self._lockfile is not None: | ||
return self.remove() | ||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if self._lockfile is not None: | |
return self.remove() | |
return None | |
if self._lockfile is not None: | |
self.remove() |
address #335