Skip to content

Add option to specify where the sdist tarfile should be expanded #614

@cquike

Description

@cquike

Currently, if no -s or -w option is given, a sdist is created which is then extracted in a /tmp/build-sdist-xxx directory. It would be useful to have an option to specify this directory. That's important when compiling large C extensions which can benefit from using ccache. When a random temporary directory is created then ccache is of not use.

In other words, my request is to have an option to specify the directory sdist_out in this line:

sdist_out = tempfile.mkdtemp(prefix='build-via-sdist-')
. Obviously the default should be the current behaviour and only when the option is specified that directory should be used.

I know that the current -w option helps in that sense, but it is desirable to have off-source builds since the extension compilation can potentially create many files and mess around with the sources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions