VirtualBox

Ignore:
Timestamp:
Sep 28, 2016 11:13:19 AM (8 years ago)
Author:
vboxsync
Message:

deb: allow python 3 for building but prefer python 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/debian/rules

    r63959 r64072  
    6666STAGEDISO ?= $(if $(wildcard $(vboxroot)/prebuild/VBoxGuestAdditions.iso),$(vboxroot)/prebuild,)
    6767NOWINE   := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose)
     68PYTHON   := $(firstword $(shell which python) $(shell which python3))
    6869
    6970ifneq ($(wildcard $(verfile)),)
     
    276277        export VBOX_INSTALL_PATH=/usr/lib/$(package) && \
    277278            cd $(builddir)/bin/sdk/installer && \
    278             python ./vboxapisetup.py install --root $(prefix)
     279            $(PYTHON) ./vboxapisetup.py install --root $(prefix)
    279280        rm -rf $(prefix)/usr/lib/$(package)/sdk/installer
    280281        ln -s ../VBoxVMM.so $(prefix)/usr/lib/$(package)/components/VBoxVMM.so
     
    321322        mv $(prefix)/usr/lib/debug $(current)/debian/$(verpkg)-dbg/usr/lib
    322323endif
    323         dh_python2
     324        $(firstword $(shell which dh_python2) $(shell which dh_python3))
    324325        dh_compress -X.pdf -X.chm -X LICENSE -X.py
    325326        dh_fixperms
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette