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.

Implement not-so rudimentary support of version string

See original GitHub issue

Hi

I am using pwlf within https://github.com/pyinstaller/pyinstaller (it compiles python to exe on windows).

However, pwlf is causing some troubles, because version handling is too simple - the file “https://github.com/cjekel/piecewise_linear_fit_py/blob/master/pwlf/VERSION” is not included automatically in the build, and I have to create it every time. Otherwise, it is failing: https://github.com/cjekel/piecewise_linear_fit_py/blob/8f974440c25cf6b57c1af50dfd4f3d5f7ab3ac73/pwlf/__init__.py#L11-L12

For now I’m going to generate empty VERSION file by script, however it is not a solution.

I suggest to use the approach numpy guys use: They generate version.py file by setup.py: https://github.com/numpy/numpy/blob/96abdedcb21df7e1a07a7e73a5f2103895a36faf/setup.py#L127

and then import it as __version__: https://github.com/numpy/numpy/blob/b7c27bd2a3817f59c84b004b87bba5db57d9a9b0/numpy/__init__.py#L132

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cjekelcommented, Jun 26, 2020

Okay, thanks! I’ll push a new release soon.

1reaction
cjekelcommented, Jan 23, 2020

I’ll let you close this, but whenever you get a chance let me know if the latest version fixes your pyinstaller issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add configuration support for final version string #1582 - GitHub
New feature motivation As standardized as semantic version strings are, I imagine not everyone supports every part of the standard.
Read more >
R News - The Comprehensive R Archive Network
Objects of class "POSIXlt" created in this version of R always have 11 ... Rudimentary support for vi-style tags in rtags() and R...
Read more >
NuGet Package Version Reference - Microsoft Learn
Exact details on specifying version numbers and ranges for other packages upon which a NuGet package depends, and how dependencies are ...
Read more >
NetCDF: FAQ - Unidata Software Documentation
How can I use current versions of netCDF-4 with Windows? How can I use netCDF-4.1 with ... How many releases of the C-based...
Read more >
lmdb — lmdb 1.4.0 documentation
This is a universal Python binding for the LMDB 'Lightning' Database. Two variants are provided and automatically selected during install: a CFFI variant ......
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