Skip to content

make install: make compileall optional #81356

Closed as duplicate
Closed as duplicate

Description

@blueyed
mannequin
BPO 37175
Nosy @blueyed, @ned-deily

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2019-06-06.13:03:12.868>
labels = ['type-feature', 'expert-installation', '3.9']
title = 'make install: make compileall optional'
updated_at = <Date 2019-06-07.17:38:50.905>
user = 'https://github.com/blueyed'

bugs.python.org fields:

activity = <Date 2019-06-07.17:38:50.905>
actor = 'ned.deily'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Installation']
creation = <Date 2019-06-06.13:03:12.868>
creator = 'blueyed'
dependencies = []
files = []
hgrepos = []
issue_num = 37175
keywords = []
message_count = 2.0
messages = ['344812', '344976']
nosy_count = 2.0
nosy_names = ['blueyed', 'ned.deily']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue37175'
versions = ['Python 3.9']

Activity

  1. blueyed commented on Jun 6, 2019

    blueyedmannequin
    MannequinAuthor

    I'd like to make running compileall optionally during installation, since it takes quite a while by itself (with lots of output), and gets a bit into the way when installing often (e.g. with git-bisect).

    AFAIK it should not be required, because the files would be compiled on demand as usual.

    I could imagine having an explicit target for this, or a make variable to control this, i.e. "make install COMPILEALL=0".

  2. ned-deily commented on Jun 7, 2019

    @ned-deily
    Member

    In many installations, the user running Python would not have write access to the lib directory tree where the compiled byte files need to be created so we would not want to change the current default behavior. On the other hand, I could see some times when testing where it would speed things up to skip compiling.

    The issue of tons of output is really a more important issue; it would be useful to be able to suppress all those lines of compile output as they rarely provide any useful information, perhaps even suppressing by default.

  3. added and removed on Jun 7, 2019
  4. transferred this issue fromon Apr 10, 2022
  5. encukou commented on Oct 30, 2026

    @encukou
    Member

    To suppress output, use make install COMPILEALL_OPTS='-q'.

    This is a duplicate of #160835, which is newer but IMO has a more compelling use case. And... I already commented there, so I'll close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions