question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] Which module do we use to check the library version?

See original GitHub issue

Optuna uses three modules to check the library versions, i.e., packaging, pkg_resources and distutils. As mentioned in #1551, packaging is not a standard library, and we need an additional dependency.

Currently, packaging is only used for the deprecation, and maybe we can replace it with distutils and reduce the number of dependencies.

See https://github.com/optuna/optuna/pull/1551#pullrequestreview-455262699 for further details.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
toshihikoyanasecommented, Aug 4, 2020

@hvy Sounds reasonable. I created a PR #1589 to replace the other modules with packaging and labeled it contribution-welcome.

1reaction
hvycommented, Jul 28, 2020

Thank you for the throughout investigation. I agree with “introducing” either pkg_resources or packaging, but don’t have a stronger preference for either, since both seem very ubiquitous (license-wise, they also seem okay). Some argument for packaing could be that it’s somewhat lighter and that setuptools could be overkill for this particular use case.

Edit: packaging is by the way already required in out setup.py so it would require no additions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

YANG Module Library RFC 7895 - IETF Datatracker
YANG Module Library RFC 7895.
Read more >
HOW TO: Check installed version and patch level of SAP RFC ...
​To find out the patch level of a NW RFC library file, run the command (replace <sapnwrfc> with the platform specific file name;...
Read more >
RFC 7950: The YANG 1.1 Data Modeling Language
When updating a YANG version 1 module to 1.1 and the module uses such quote characters, the string must be changed to match...
Read more >
rfclint · PyPI
Usage. rfclint accepts a single XML document as input and optionally outputs a modified version of the document. The following options affect how...
Read more >
RFC: Splitting the library into packages - Discuss - ProseMirror
(I could have put every node and mark type in the current default schema into its own module, for consistency, but then we're...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found