mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Throw an error when the time comes to remove the deprecated code.
This commit is contained in:
parent
8a6e0a38ed
commit
3f14678796
1 changed files with 8 additions and 1 deletions
9
setup.py
9
setup.py
|
@ -409,7 +409,6 @@ class Build(build):
|
|||
|
||||
|
||||
class Install(install):
|
||||
# XXX: Remove the Salt Specific Options In Salt Boron. They are now global options
|
||||
user_options = install.user_options + [
|
||||
('salt-root-dir=', None,
|
||||
'Salt\'s pre-configured root directory'),
|
||||
|
@ -435,6 +434,14 @@ class Install(install):
|
|||
|
||||
def initialize_options(self):
|
||||
install.initialize_options(self)
|
||||
# pylint: disable=undefined-variable
|
||||
if __saltstack_version__.info >= (2015, 3):
|
||||
# XXX: Remove the Salt Specific Options In Salt Boron. They are now global options
|
||||
raise DistutilsArgError(
|
||||
'Developers, please remove the salt paths configuration '
|
||||
'setting from the setup\'s install command'
|
||||
)
|
||||
# pylint: enable=undefined-variable
|
||||
self.salt_root_dir = None
|
||||
self.salt_config_dir = None
|
||||
self.salt_cache_dir = None
|
||||
|
|
Loading…
Add table
Reference in a new issue