pyNastran icon indicating copy to clipboard operation
pyNastran copied to clipboard

Bump numpy dependency to Numpy 2.x

Open janheindejong opened this issue 2 months ago • 6 comments

Awesome package!

However, when I try installing it on Python 3.13 it fails, since the package depends on Numpy 1.x, and there's no wheels for this version of numpy and Python on PyPi. It tries to build Numpy, but this requires all kinds of difficult dependencies (gcc).

Could we bump the Numpy dependency?

janheindejong avatar Oct 01 '25 12:10 janheindejong

It works on Windows. Not sure what issue you’re having.

The dev version supports numpy 2, but also 1.x. I see no reason force users onto 2.0.

On Wed, Oct 1, 2025 at 5:32 AM Jan Hein de Jong @.***> wrote:

janheindejong created an issue (SteveDoyle2/pyNastran#846) https://github.com/SteveDoyle2/pyNastran/issues/846

Awesome package!

However, when I try installing it on Python 3.12 it fails, since the package depends on Numpy 1.x, and there's no wheels for this version of numpy and Python on PyPi. It tries to build Numpy, but this requires all kinds of difficult dependencies (gcc).

Could we bump the Numpy dependency?

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/846, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWOUBWT6B45YW3J5R2T3VPCXXAVCNFSM6AAAAACIAAJWGKVHI2DSMVQWIX3LMV43ASLTON2WKOZTGQ3TGMZXGI3TAMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

SteveDoyle2 avatar Oct 01 '25 16:10 SteveDoyle2

Hmm... interesting. When I check PyPi for the latest version of Numpy 1.x, I can't find any builds for CPython 3.13 and beyond.

https://pypi.org/project/numpy/1.26.4/#files

If I'm not mistaken, this means that if you want to use PyNastran, you either have to stick to Python 3.12, or install all tools needed to build Numpy from source.

janheindejong avatar Oct 01 '25 19:10 janheindejong

Yes. Python 3.13 did not exist when i released 1.4.1

On Wed, Oct 1, 2025 at 12:34 PM Jan Hein de Jong @.***> wrote:

janheindejong left a comment (SteveDoyle2/pyNastran#846) https://github.com/SteveDoyle2/pyNastran/issues/846#issuecomment-3357854114

Hmm... interesting. When I check PyPi for the latest version of Numpy 1.x, I can't find any builds for CPython 3.13 and beyond.

https://pypi.org/project/numpy/1.26.4/#files

If I'm not mistaken, this means that if you want to use PyNastran, you either have to stick to Python 3.12, or install all tools needed to build Numpy from source.

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/846#issuecomment-3357854114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWN6VPEHL7PT6SGIIAT3VQUEVAVCNFSM6AAAAACIAAJWGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNJXHA2TIMJRGQ . You are receiving this because you commented.Message ID: @.***>

SteveDoyle2 avatar Oct 01 '25 19:10 SteveDoyle2

The standard for Linux is to use the package manager

On Wed, Oct 1, 2025 at 12:58 PM Steven Doyle @.***> wrote:

Yes. Python 3.13 did not exist when i released 1.4.1

On Wed, Oct 1, 2025 at 12:34 PM Jan Hein de Jong @.***> wrote:

janheindejong left a comment (SteveDoyle2/pyNastran#846) https://github.com/SteveDoyle2/pyNastran/issues/846#issuecomment-3357854114

Hmm... interesting. When I check PyPi for the latest version of Numpy 1.x, I can't find any builds for CPython 3.13 and beyond.

https://pypi.org/project/numpy/1.26.4/#files

If I'm not mistaken, this means that if you want to use PyNastran, you either have to stick to Python 3.12, or install all tools needed to build Numpy from source.

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/846#issuecomment-3357854114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWN6VPEHL7PT6SGIIAT3VQUEVAVCNFSM6AAAAACIAAJWGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNJXHA2TIMJRGQ . You are receiving this because you commented.Message ID: @.***>

SteveDoyle2 avatar Oct 01 '25 19:10 SteveDoyle2

Ok. I guess it's fine for now, but in 2-3 years time I can imagine being stuck on 3.12 for Windows users will start to hurt.

janheindejong avatar Oct 02 '25 14:10 janheindejong

I’m working on a new release but I work 70 hour weeks and pypi is harder than it used to be.

On Thu, Oct 2, 2025 at 7:27 AM Jan Hein de Jong @.***> wrote:

janheindejong left a comment (SteveDoyle2/pyNastran#846) https://github.com/SteveDoyle2/pyNastran/issues/846#issuecomment-3361472021

Ok. I guess it's fine for now, but in 2-3 years time I can imagine being stuck on 3.12 for Windows users will start to hurt.

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/846#issuecomment-3361472021, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWKKOP7QQ6SUIRRWUKT3VUY4HAVCNFSM6AAAAACIAAJWGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNRRGQ3TEMBSGE . You are receiving this because you commented.Message ID: @.***>

SteveDoyle2 avatar Oct 02 '25 14:10 SteveDoyle2