This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: DESTDIR variable patch
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, wrobell
Priority: normal Keywords: patch

Created on 2003-04-09 14:44 by wrobell, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-DESTDIR.patch wrobell, 2003-04-09 14:46 DESTDIR patch
Messages (3)
msg43308 - (view) Author: wrobell (wrobell) Date: 2003-04-09 14:44
This patch adds DESTDIR variable feature known from
automake generated Makefile's. It simplifies packaging
task and is useful for distro (i.e. PLD, RedHat,
Debian) developers.

For example, for rpm, one can specify in %install section:

  make install DESTDIR=$RPM_BUILD_ROOT

then Python will be installed under $RPM_BUILD_ROOT
directory.
Otherwise distro developer is forced to specify:

  make install \
       BINDIR=$RPM_BUILD_ROOT%{_bindir} \
       SCRIPTDIR=$RPM_BUILD_ROOT%{_libdir} \
       LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
       MANDIR=$RPM_BUILD_ROOT%{_mandir} \
       INCLUDEDIR=$RPM_BUILD_ROOT%{_includedir} \
       CONFINCLUDEDIR=$RPM_BUILD_ROOT%{_includedir}


The patch has been tested on Linux.
msg43309 - (view) Author: wrobell (wrobell) Date: 2003-04-09 14:46
Logged In: YES 
user_id=387193

Adding the patch due to current sf policy.
msg43310 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-05-11 20:26
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as

Makefile.pre.in 1.125
README 1.172
NEWS 1.764
History
Date User Action Args
2022-04-10 16:08:05adminsetgithub: 38278
2003-04-09 14:44:13wrobellcreate