Skip to content

Commit

Permalink
Option for exclude default build deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-helsinki authored and dirk-thomas committed Dec 1, 2019
1 parent 3658863 commit 7386d05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from distutils.core import setup
from setuptools import setup
import codecs

with codecs.open('README.rst', encoding='utf-8') as file:
Expand All @@ -7,7 +7,7 @@
setup(name='stdeb',
# Keep version in sync with stdeb/__init__.py and install section
# of README.rst.
version='0.8.5',
version='0.8.5.1',
author='Andrew Straw',
author_email='[email protected]',
description='Python to Debian source package conversion utility',
Expand Down
9 changes: 9 additions & 0 deletions stdeb/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,15 @@ def __init__(self,
else:
build_deps.append( 'debhelper (>= %s)'%DH_MIN_VERS )

try:
no_default_build_deps = \
cfg.get('DEFAULT', 'No-Default-Build-Deps')\
.strip().lower() == "true"
if no_default_build_deps:
build_deps = []
except ConfigParser.NoOptionError:
pass

build_deps.extend( parse_vals(cfg,module_name,'Build-Depends') )
self.build_depends = ', '.join(build_deps)

Expand Down

0 comments on commit 7386d05

Please sign in to comment.