VirtualBox

Changeset 59491 in vbox


Ignore:
Timestamp:
Jan 27, 2016 12:37:34 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105259
Message:

Main/webservice: Drop Python ZSI 1.x backwards compatibility. It is long obsolete (ZSI 2.0 has been released 2007) and requires very non-obvious tricks in the build system.

Location:
trunk/src/VBox/Main/webservice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r59485 r59491  
    529529 #
    530530 VBOXWEB_GLUE_PYTHON           = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_wrappers.py
    531  VBOXWEB_WS_PYTHON             = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_services.py
     531 # The following 3 files are generated by Python ZSI 2.0 which was released
     532 # in 2007. ZSI 1.x used different file names. Not worth supporting any more.
     533 # If you're curious, check the VirtualBox 4.3 sources.
     534 VBOXWEB_WS_PYTHON             = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_client.py
     535 VBOXWEB_WS_PYTHON_TYPES       = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_types.py
     536 VBOXWEB_WS_PYTHON_SERVER      = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_server.py
    532537 VBOXWEB_WS_PERL               = $(VBOX_PATH_SDK)/bindings/webservice/perl/lib/vboxService.pm
    533538 VBOXWEB_WS_PHP                = $(VBOX_PATH_SDK)/bindings/webservice/php/lib/vboxServiceWrappers.php
     
    543548        $(if $(VBOX_WITH_PYTHON),$(VBOXWEB_GLUE_PYTHON),)       \
    544549        $(if $(VBOX_WITH_PYTHON),$(VBOXWEB_WS_PYTHON),)         \
     550        $(if $(VBOX_WITH_PYTHON),$(VBOXWEB_WS_PYTHON_TYPES),)   \
    545551        $(if $(VBOX_WITH_PERL),$(VBOXWEB_WS_PERL),)             \
    546552        $(if $(VBOX_WITH_PHP),$(VBOXWEB_WS_PHP),)               \
     
    585591OTHER_CLEAN += \
    586592        $(VBOXWEB_OTHERS) \
     593        $(if $(VBOX_WITH_PYTHON),$(VBOXWEB_WS_PYTHON_SERVER),)  \
    587594        $(VBOXWEB_WSDL) \
    588595        $(VBOXWEBSERVICE_WSDL) \
     
    615622        $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-python.xsl $<
    616623
    617 $(VBOXWEB_WS_PYTHON): $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
     624$(VBOXWEB_WS_PYTHON) \
     625+ $(VBOXWEB_WS_PYTHON_TYPES): $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
    618626        $(call MSG_GENERATE,,$@, WS Python bindings)
    619627        $(QUIET)$(RM) -f -- $@
     
    621629# Try both w/o and with --file option
    622630        $(QUIET)$(REDIRECT) -C $(@D) -- $(SHELL) -c "$(VBOX_WSDL2PY) -b $(VBOXWEBSERVICE_WSDL) || $(VBOX_WSDL2PY) -b  --file $(VBOXWEBSERVICE_WSDL)"
    623 # Note: the previous command (depending on the version) may or may not create
    624 # $@, but the Python webservice bindings in the SDK depend on its presence.
     631# We do not ever need the VirtualBox_server.py file. Delete it immediatelyi
     632# so that it will not get packaged in the SDK.
     633        $(QUIET)$(RM) -f -- $(VBOXWEB_WS_PYTHON_SERVER)
    625634        $(QUIET)$(APPEND) $@ ''
    626635
  • trunk/src/VBox/Main/webservice/websrv-python.xsl

    r59488 r59491  
    491491# This file is autogenerated from VirtualBox.xidl, DO NOT EDIT!
    492492#
    493 from VirtualBox_services import *
    494 
    495 try:
    496   from VirtualBox_client import *
    497 except:
    498   pass
     493
     494# Works only with ZSI 2.0 generated stubs (part of the VirtualBox SDK).
     495from VirtualBox_client import *
    499496
    500497class ManagedManager:
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