VirtualBox

source: vbox/trunk/src/VBox/Installer/common/vboxapisetup-stub.py@ 103028

Last change on this file since 103028 was 103028, checked in by vboxsync, 10 months ago

Main/Python: Big revamp to modernize our vboxapi Python package to now use a so-called src-layout, which also can be used with pip directly. Also added compatibility w/ Python 3.12 where distutils are not shipped anymore. We also now do have automatic linting for our code, which hopefully should improve quality in this area. Moved some Python-related files into an own sub folder so that it's more clear to which these belong to. The "sdk/installer" directories also have an own "python" sub directory where the stuff resides now. The Windows installer also uses "sdk/installer" instead of "sdk/install", to match the other platforms. bugref:10579

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1"""
2Copyright (C) 2024 Oracle and/or its affiliates.
3
4This file is part of VirtualBox base platform packages, as
5available from https://www.virtualbox.org.
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation, in version 3 of the
10License.
11
12This program is distributed in the hope that it will be useful, but
13WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, see <https://www.gnu.org/licenses>.
19
20The contents of this file may alternatively be used under the terms
21of the Common Development and Distribution License Version 1.0
22(CDDL), a copy of it is provided in the "COPYING.CDDL" file included
23in the VirtualBox distribution, in which case the provisions of the
24CDDL are applicable instead of those of the GPL.
25
26You may elect to license modified versions of this file under the
27terms and conditions of either the GPL or the CDDL or both.
28
29SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
30"""
31
32#
33# This is just a wrapper for calling vboxapi/setup.py, so that we can keep
34# the behavior of vboxapisetup.py as we did in the past.
35#
36if __name__ == '__main__':
37 import sys
38 try:
39 sys.path.append("vboxapi")
40 import setup
41 sys.exit(setup.main())
42 except ImportError as exc:
43 print("VBox Python API binding sources not found: %s" % (exc))
44 sys.exit(1)
Note: See TracBrowser for help on using the repository browser.

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