Skip to content

DOC: Improve compiler installation instructions #28316

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

Merged
merged 4 commits into from
Sep 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions doc/source/development/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,35 @@ operations. To install pandas from source, you need to compile these C
extensions, which means you need a C compiler. This process depends on which
platform you're using.

* Windows: https://devguide.python.org/setup/#windows-compiling
* Mac: https://devguide.python.org/setup/#macos
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Mac, the https://devguide.python.org/setup/#macos link actually has some explanation about installing XCode, so maybe for this one we can keep the link until we have better instructions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have replaced my Mac instructions with just the link above.

I've also changed formatting - happy to change back as well @jorisvandenbossche

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting looks good!

* Unix: https://devguide.python.org/setup/#unix-compiling
* Windows: https://scikit-learn.org/stable/developers/advanced_installation.html#windows
* Mac: From Xcode 4.2, the C compiler 'Clang' is the default compiler for
Mac OS X and new versions of Mac OS X should already have this installed. You
can check if you have Clang installed by typing ``clang --version`` in a
terminal. If you do not, you can install Clang by typing
``xcode-select --install`` in a terminal. Then follow the pop-up instructions
and agree to install the tools. You may also choose to install a different
C compiler if you wish.
* Unix: Some Linux distributions will come with with a C compiler. To find out
which compilers (and versions) are installed on your system::

# for Debian/Ubuntu:
dpkg --list | grep compiler
# for Red Hat/RHEL/CentOS/Fedora:
yum list installed | grep -i --color compiler

`GCC (GNU Compiler Collection) <https://gcc.gnu.org/>`_, is a widely used
compiler, which supports C and a number of other languages. If GCC is listed
as an installed compiler nothing more is required. If no C compiler is
installed (or you wish to install a newer version) you can install a compiler
(GCC in the example code below) with::

# for recent Debian/Ubuntu:
sudo apt install build-essential
# for Red Had/RHEL/CentOS/Fedora
yum groupinstall "Development Tools"

For other Linux distributions, consult your favourite search engine for
installation instructions.

Let us know if you have any difficulties by opening an issue or reaching out on
`Gitter`_.
Expand Down