[cmake-developers] [CMake 0014019]: ExternalProject_Add: please support python setup.py style of install
Mantis Bug Tracker
mantis at public.kitware.com
Fri Mar 15 10:06:07 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14019
======================================================================
Reported By: Luc J. Bourhis
Assigned To:
======================================================================
Project: CMake
Issue ID: 14019
Category: CMake
Reproducibility: N/A
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-03-15 10:06 EDT
Last Modified: 2013-03-15 10:06 EDT
======================================================================
Summary: ExternalProject_Add: please support python setup.py
style of install
Description:
Many python extensions are installed by relying on a distutils scheme. They ship
with a Python script setup.py and the installation proceeds with python setup.py
install in the simplest case. The most general scheme is a two-step process:
python setup.py build [options] (or build_ext instead) and then python setup.py
install [options]. Performing the latter without options always does the right
thing.
It would be nice if ExternalProject_Add supported new arguments to set it up out
of the box.
I propose the following:
ExternalProject_Add(
...
PYTHON_SETUP 1 # switch distutils style of installing on/off
PYTHON_EXECUTABLE path # which Python interpreter to use
# default: ${PYTHON_EXECUTABLE} as
found by FindPython
PYTHON_BUILD_COMMAND # arguments passed to python setup.py for the build
stage
# default: build
PYTHON_INSTALL_COMMAND # arguments passed to python setup.py for the install
stage
# default: install
)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-03-15 10:06 Luc J. Bourhis New Issue
======================================================================
More information about the cmake-developers
mailing list