Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #572 from bareos/dev/pstorz/master/python3-modules…
…-rebase add python3 support for fd, sd and dir plugins
- Loading branch information
Showing
525 changed files
with
13,944 additions
and
10,721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
# BAREOS(R) - Backup Archiving REcovery Open Sourced | ||
# | ||
# Copyright (C) 2020-2020 Bareos GmbH & Co. KG | ||
# | ||
# This program is Free Software; you can redistribute it and/or | ||
# modify it under the terms of version three of the GNU Affero General Public | ||
# License as published by the Free Software Foundation, which is | ||
# listed in the file LICENSE. | ||
# | ||
# This program is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
# 02110-1301, USA. | ||
|
||
# This program extracts the build configuration from the python interpreter. | ||
# The output is consumed by cmake where appropriate variables are set. | ||
# This is required to build python modules without setuptools. | ||
|
||
import sys | ||
try: | ||
import sysconfig | ||
except: | ||
import distutils.sysconfig as sysconfig | ||
|
||
for var in ("CC", "BLDSHARED"): | ||
value = sysconfig.get_config_var(var) | ||
print ("message(STATUS \"Python{0}_{1}\ is\ {2}\")" . format(sys.version_info[0], var, value)) | ||
print ("set(Python{0}_{1} \"{2}\")" . format(sys.version_info[0], var, value)) | ||
|
||
# if nothing comes after the compile command, the flags are empty | ||
try: | ||
value = value.split(' ',1)[1] | ||
except: | ||
value = '' | ||
# as these vars contain the compiler itself, we remove the first word and return it as _FLAGS | ||
print ("message(STATUS \"Python{0}_{1}_FLAGS\ is\ {2}\")" . format(sys.version_info[0], var, value)) | ||
print ("set(Python{0}_{1}_FLAGS \"{2}\")" . format(sys.version_info[0], var, value)) | ||
|
||
for var in ("CFLAGS","CCSHARED","INCLUDEPY","LDFLAGS"): | ||
value = sysconfig.get_config_var(var) | ||
print ("message(STATUS \"Python{0}_{1}\ is\ {2}\")" . format(sys.version_info[0], var, value)) | ||
print ("set(Python{0}_{1} \"{2}\")" . format(sys.version_info[0], var, value)) | ||
|
||
for var in ("EXT_SUFFIX",): | ||
value = sysconfig.get_config_var(var) | ||
if value is None: | ||
value = '' | ||
print ("message(STATUS \"Python{0}_{1}\ is\ {2}\")" . format(sys.version_info[0], var, value)) | ||
print ("set(Python{0}_{1} \"{2}\")" . format(sys.version_info[0], var, value)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.director-python-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
lib/bareos/plugins/python-dir.so | ||
lib/bareos/plugins/bareos-dir.py.template | ||
lib/bareos/plugins/bareos_dir_consts.py | ||
lib/bareos/plugins/BareosDirPluginBaseclass.py | ||
lib/bareos/plugins/bareos-dir-class-plugin.py | ||
lib/bareos/plugins/BareosDirWrapper.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.storage-python-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
lib/bareos/plugins/python-sd.so | ||
lib/bareos/plugins/bareos-sd.py.template | ||
lib/bareos/plugins/bareos_sd_consts.py | ||
lib/bareos/plugins/BareosSdPluginBaseclass.py | ||
lib/bareos/plugins/BareosSdWrapper.py | ||
lib/bareos/plugins/bareos-sd-class-plugin.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.