-
Notifications
You must be signed in to change notification settings - Fork 23
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
Python executable name in Makefiles #253
Comments
Yes, I suspect Debian's behavior is not what you'd expect. Python should be available, and is in any created virtual environment. But, a detection line that handles |
Hah, I see they have a package for that: |
Imo, Debian's behaviour is in fact the opposite than what one would expect. In this day and age there is only one python, so why call it python3, what does that distinguish it from? |
According tohttps://peps.python.org/pep-0394/#migration-notes:
My understanding is that |
Hi, we at https://github.com/pybamm-team/pybamm.org (PyBaMM website) have been using this theme since June 2023 and would like to offer some feedback – we removed the Makefile from this theme in favour of using The advantages are that it resolves the issues mentioned here, it is a bit more Pythonic and easy to maintain – the only drawback I can think of is that it creates virtual environments at Early this year, I have been experimenting with pip-installable binaries for Hugo for this purpose, which are available at https://github.com/agriyakhetarpal/hugo-python-distributions/, I have been keeping them in sync with Hugo releases upstream and I plan to keep them maintained (one can use Footnotes
|
@jarrodmillman @stefanv
While working on numpy/numpy.org#668 today, I had to edit the numpy.org Makefile to call
python3
rather thanpython
. On Debian 11, there is nopython
by default, onlypython3
.Since Python 2 is officially EOL, I guess it would be appropriate to switch to calling
python3
in this project's Makefile, as well as the ones for numpy.org and scientific-python.org, but I'd like to ask for feedback from users before making a PR that does so. Since users of these projects are on a variety of platforms, including e.g. Windows and Anaconda, I wouldn't want to make a change that would just break it for a different set of users. If necessary, we could define an alias at the beginning of the Makefile that automatically detects which name to use.What do you think? Thanks.
The text was updated successfully, but these errors were encountered: