projects
/
auto-debuild.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f10524d
)
Auto-determine the number of parallel jobs to use
author
Ralf Jung
<post@ralfj.de>
Wed, 18 Sep 2013 13:22:09 +0000
(15:22 +0200)
committer
Ralf Jung
<post@ralfj.de>
Wed, 18 Sep 2013 13:22:09 +0000
(15:22 +0200)
auto_debuild.py
patch
|
blob
|
history
diff --git
a/auto_debuild.py
b/auto_debuild.py
index bee82caa859df4fc1759e937bc038a1a4fb8136b..410d8489cd3118b5d5fd2e4cd0f79db5c06e43a9 100755
(executable)
--- a/
auto_debuild.py
+++ b/
auto_debuild.py
@@
-16,7
+16,7
@@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-import os, shutil, stat, time, subprocess, sys, shlex, tempfile, argparse
+import os, shutil, stat, time, subprocess, sys, shlex, tempfile, argparse
, multiprocessing
from collections import OrderedDict
# a dict with some useful additional getters which can convert types and handle one-element lists like their single member
from collections import OrderedDict
# a dict with some useful additional getters which can convert types and handle one-element lists like their single member
@@
-209,7
+209,7
@@
def createDebianFiles(config):
version = config.getstr('version') # version name excluding epoch (used for filenames)
fullVersion = str(config.getint('epoch'))+':'+version if 'epoch' in config else version # version name including epoch
dbgPackage = config.getbool('dbgPackage', False)
version = config.getstr('version') # version name excluding epoch (used for filenames)
fullVersion = str(config.getint('epoch'))+':'+version if 'epoch' in config else version # version name including epoch
dbgPackage = config.getbool('dbgPackage', False)
- parallelJobs = config.getint('parallelJobs',
2
)
+ parallelJobs = config.getint('parallelJobs',
multiprocessing.cpu_count()+1
)
packageArchitecture = config.getstr('architecture', 'any')
withPython2 = config.getbool('withPython2', False)
withSIP = config.getbool('withSIP', False)
packageArchitecture = config.getstr('architecture', 'any')
withPython2 = config.getbool('withPython2', False)
withSIP = config.getbool('withSIP', False)