Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reorganize the setup.rst page.#412

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ezio-melotti merged 2 commits intopython:masterfromezio-melotti:setup-reorganization
Sep 12, 2018
Merged

Reorganize the setup.rst page.#412

ezio-melotti merged 2 commits intopython:masterfromezio-melotti:setup-reorganization
Sep 12, 2018

Conversation

ezio-melotti
Copy link
Member

This PR reorganizes the setup.rst page:

  1. There is now a section about compiling Python, followed by a separate section about installing dependencies
  2. The commands to compile Python are now just after the section about getting the code
  3. The header levels have been fixed
  4. Some paragraphs have been rephrased

Copy link
MemberAuthor

@ezio-melottiezio-melotti left a comment

Choose a reason for hiding this comment

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

A few comments explaining what I did + a few questions.


The core CPython interpreter only needs a C compiler to be built; if
you get compile errors with a C89 or C99-compliant compiler, please `open a
bug report <https://bugs.python.org>`_.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This part has been moved below.


Build dependencies
------------------
UNIX
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This should include both Linux and macOS.

willingc reacted with thumbs up emoji
UNIX
----
If you want to install these optional dependencies, consult the
:ref:`build-dependencies` section below.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Is the terminology correct here (and elsewhere)?
AFAIU thedependencies, are required to buildextension modules (or simplyextensions). The dependencies can beinstalled (by usingyum/apt/etc) andbuilt (indirectly, bymake).
The section below coversinstalling for Linux, and bothinstalling andbuilding (since different flags are required byconfigure) for macOS.

_tkinter _uuid readline
zlib
To find the necessary bits, look in setup.py in detect_modules()
for the module's name.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I added this block to show clearly where the missing extensions are listed, and pointed out that this is expected and should not be considered an error (I've seen people being confused by this message before).

willingc reacted with hooray emoji


Clang
'''''
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This is now nested under theUNIX section.

.. _build-dependencies:

Install dependencies
====================
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This is now a new top-level section, that covers installing dependencies.
Since it also explains how to buiild them for macOS, perhaps the title should be changed toInstall and build dependencies

``configure`` and ``make`` (if available for your OS).
Otherwise the build failed and thus should be fixed (at least with a bug being
filed on the `issue tracker`_).

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I removed this part because it was duplicated from above. People that reach this point should have already read and know whatmake does.

----

The basic steps for building Python for development is to configure it and
then compile it.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This part has been moved to the top.


.. _deps-on-linux:

Linux
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This used to beUNIX, but it seems to me that it's Linux-specific, since macOS is covered later.
Am I missing something?

willingc reacted with thumbs up emoji
Copy link
Collaborator

@willingcwillingc left a comment

Choose a reason for hiding this comment

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

Thanks@ezio-melotti. This looks great. One small typo. Feel free to merge.

@ezio-melottiezio-melotti merged commitcb66ba1 intopython:masterSep 12, 2018
@ezio-melottiezio-melotti deleted the setup-reorganization branchSeptember 12, 2018 00:38
AA-Turner pushed a commit to AA-Turner/devguide that referenced this pull requestJun 17, 2022
* Reorganize the setup.rst page.* Fix typo.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@willingcwillingcwillingc approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@ezio-melotti@willingc@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp