anntzer / pypi2pkgbuild

A PyPI to PKGBUILD converter.
MIT License
71 stars 6 forks source link

Add support for alternative python version #31

Closed wasertech closed 1 year ago

wasertech commented 1 year ago

I have to say, this project has just made my life so much more easier, I love it!

Only thing, is that I needed to create lots of packages using Python3.8 so I took pypi2pkgbuild.py to make py38pi2pkgbuild.

It's just a draft for me to quickly create my packages but I'll probably work on it more to be able to work with py39 too.

anntzer commented 1 year ago

Supporting e.g. --python=/usr/bin/python38 seems OK and I could perhaps consider such a PR; duplicating the entire code base certainly not.

wasertech commented 1 year ago

duplicating the entire code base certainly not.

It's only a draft for me to create my packages 😅.

Supporting e.g. --python=/usr/bin/python38 seems OK

I've thought about it but you forget about the shebang.

#!/usr/bin/env python for the current python version (3.10) But I used #!/usr/bin/env python3.8 for my custom version of python.

Still your feedback is valid so I'll try to make it with only one file.

anntzer commented 1 year ago

pypi2pkgbuild can still be run from py3.10 and create packages for py3.8, I think?