Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
preetwinder
erp5
Commits
0f6ed2c0
Commit
0f6ed2c0
authored
13 years ago
by
Arnaud Fontaine
Browse files
Options
Download
Email Patches
Plain Diff
For python < 2.7, erp5.util.benchmark requires argparse
parent
edc450d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
setup.py
setup.py
+9
-1
No files found.
setup.py
View file @
0f6ed2c0
...
...
@@ -15,6 +15,14 @@ long_description += open("CHANGES.erp5.util.txt").read() + "\n"
if
not
os
.
path
.
exists
(
'README.txt'
):
os
.
symlink
(
'README.erp5.util.txt'
,
'README.txt'
)
benchmark_install_require_list
=
[
name
+
'[testbrowser]'
]
# argparse needed for erp5.util.benchmark is only available from python >= 2.7
import
sys
python_major_version
,
python_minor_version
=
sys
.
version_info
[:
2
]
if
python_major_version
==
2
and
python_minor_version
<
7
:
benchmark_install_require_list
.
append
(
'argparse'
)
setup
(
name
=
name
,
version
=
version
,
description
=
"ERP5 related utilities."
,
...
...
@@ -40,7 +48,7 @@ setup(name=name,
extras_require
=
{
'testnode'
:
[
'slapos.core'
,
'xml_marshaller'
],
'testbrowser'
:
[
'zope.testbrowser >= 3.11.1'
,
'z3c.etestbrowser'
],
'benchmark'
:
[
name
+
'[testbrowser]'
]
,
'benchmark'
:
benchmark_install_require_list
,
'benchmark-report'
:
[
name
+
'[benchmark]'
,
'matplotlib'
,
'numpy'
],
'scalability_tester'
:
[
name
+
'[benchmark]'
,
'slapos.tool.nosqltester'
],
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment