-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Documentation incorrect for Linux build from source #6755
Comments
The instructions say:
It may be that the first download and extract in (1) is a redundant step because we're essentially doing that in (3). But they should be correct otherwise, assuming you want to build from the source distribution. And we haven't documented how to build from source from the repo after a Building from
Yes, although you've already done step (2) which is also required. Maybe we should update the instructions to also show how to install from source from GitHub? Perhaps we could use https://sphinx-tabs.readthedocs.io to help organise the page? For example, tabs under Basic installation: macOS | Linux | FreeBSD And so on. |
I've created #6756 as a suggestion for this. You can preview this at https://pillow--6756.org.readthedocs.build/en/6756/installation.html#building-from-source |
I previewed #6756 and found it to be helpful. Thank you Andrew. I also appreciate Hugo's comments. In my mind Building From Source means you are actually building from the local source code obtained from a |
I asked and got answered this question on how to build Pillow on Linux from source on StackOverflow:
https://stackoverflow.com/questions/74537064/unable-to-build-pillow-python-imaging-library-from-source-on-linux
Based on the response I received, I am filing an issue because there may be incorrect documentation for building Pillow from source on Linux.
What did you do?
I tried to build Pillow from source by following the directions at https://pillow.readthedocs.io/en/stable/installation.html#building-from-source
What did you expect to happen?
Have Pillow built from source, including my changes.
What actually happened?
Pillow appeared to build from a different downloaded copy of Pillow.
What are your OS, Python and Pillow versions?
9.4.0 (unreleased)
The following is how to reproduce the problem. Note I am following the Linux build from source Pillow documentation.
Remove all the source files from libImaging directory to prove its not building from source:
Continue to follow the Building From Source instructions at https://pillow.readthedocs.io/en/stable/installation.html#building-from-source for Debian Linux:
Pillow works on my system, but as I removed a large number of source files, I'm obviously not building from the cloned source files. The output says "Using cached Pillow-9.3.0.tar.gz" which implies it isn't using the 9.4.0 (unreleased) source files I cloned.
The following instructions do work. I proved if I removed the files from
./src/libImaging/
I now correctly get an error. Furthermore, after restoring the deleted files, I was later able to make changes to the Pillow source code and see that my changes affected the behavior of Pillow.The text was updated successfully, but these errors were encountered: