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
Overhaul installation instructions #1295
Comments
We should also remove all references to See also #1302 which will likely be in Biopython 1.70 and automate NumPy installation via pip. |
Regarding the Mac, on our download page we currently have this (you don't need all of XCode anymore):
|
I'm hoping to have wheels out before too long, which will further change things - it ought to be possible to install the latest Biopython release under Linux/Windows/Mac without needing a compiler 👍 That would mean we could refocus the compiler detail heavy information in |
Wheels are released - still an open question as to if we still need to release Windows Installers or not. |
The installation documentation in Doc/install/Installation.tex says that we strongly recommend NumPy, while README.rst and the downloads page says it's required. It doesn't matter much for the end user, but for developers it's easier if they can assume that NumPy is present. |
I'd like to heavily cull The other historical reason to work without NumPy was PyPy (not an issue anymore) and Jython (which we deprecated support for). |
To reduce the burden on the developers, I think it is acceptable to simply require NumPy and the C modules. |
I am OK with the current situation where we deliberately have a TravisCI target without NumPy to ensure this corner case can be used. This was recently helpful for testing on Python 3.8 betas, since there is not (or was not) any easy way to install NumPy short of self-compiling. See #2146 when on TravisCI it was useful to be able to test a developement release of Python without NumPy (where compiling NumPy is not possible due to the time it takes). Requiring the C modules isn't a big issue for Linux or macOS based people - but does it make the barrier to entry harder for Windows contributors? CC @MarkusPiotrowski as IIRC you were in that situation? |
Yes, setting up an environment where you can install Biopython from source or even setting up a C compiler to compile single C files into extensions is not trivial on Windows. It's not rocket science but definitely raises the bar for Windows contributors. (The minimal working Visual C++ set-up is several gigabytes large) BTW, we have already a de facto requirement for one C module: |
I hadn't realised that the |
@MarkusPiotrowski In my experience, with Cygwin it's trivial on windows. |
@peterjc (*) The current Python code in |
We digress, but I don't think C is the only answer to speeding up that code. Dropping the heavy alphabet objects will help a lot, that will leave the Anyway, it seems we agree that for end users, Numpy is expected, C compilers are not (they will get things pre-compiled as wheels or other packages). Therefore, only minimal installation instructions are needed (as in the current README). For developers, it is useful to be able to run without NumPy, and even without a C compiler. So, should the goal be to make it clear that |
Do you have sort of tutorial or step-by-step instructions for this? Do you use this during installation of Biopython or for single C files? I would like to check this out and possibly add something to our homepage. |
@MarkusPiotrowski See this page: https://www.cygwin.com/ |
Such developers wouldn't be able to assess how their changes impact the C modules or the numpy-dependent modules (and may find out only from the continuous integration tests on github). |
@mdehoon Yes, exactly. This covers a lot of useful contributions which need not touch the C code (e.g. docstring work, Python style issues). Perhaps especially true of first time contributors, where expecting them to install the C compilers is a big ask. We want to make their life easier, not harder. (Even on macOS, installing the command line tools is a substantial download) |
I think that the website and tutorial references to the following have been removed or updated now: http://biopython.org/DIST/docs/install/Installation.html That I think just leaves removing the stub |
Belatedly closing this with the removal of the |
Currently we have brief install instructions in the main
README.rst
file,and the downloads page,
Those are relatively easy to update, but we also produce a long HTML or PDF file which is included in the source code releases:
There is a barrier to contribution because the source is written in LaTeX and also requires
hevea
be installed to make the HTML output.It would be good to review this file as much of the content is many years old - and perhaps take this chance to rewrite it as reStructuredText which is rendered directly on GitHub and easily edited from the GitHub website too.
We can also include validating the markup of the new
INSTALL.rst
file (or whatever we call it) directly in the continuous integration checks.The text was updated successfully, but these errors were encountered: