Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikolaï Krol
erp5
Commits
0f6ed2c0
Commit
0f6ed2c0
authored
Sep 06, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For python < 2.7, erp5.util.benchmark requires argparse
parent
edc450d8
Changes
1
Show 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"
...
@@ -15,6 +15,14 @@ long_description += open("CHANGES.erp5.util.txt").read() + "\n"
if
not
os
.
path
.
exists
(
'README.txt'
):
if
not
os
.
path
.
exists
(
'README.txt'
):
os
.
symlink
(
'README.erp5.util.txt'
,
'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
,
setup
(
name
=
name
,
version
=
version
,
version
=
version
,
description
=
"ERP5 related utilities."
,
description
=
"ERP5 related utilities."
,
...
@@ -40,7 +48,7 @@ setup(name=name,
...
@@ -40,7 +48,7 @@ setup(name=name,
extras_require
=
{
extras_require
=
{
'testnode'
:
[
'slapos.core'
,
'xml_marshaller'
],
'testnode'
:
[
'slapos.core'
,
'xml_marshaller'
],
'testbrowser'
:
[
'zope.testbrowser >= 3.11.1'
,
'z3c.etestbrowser'
],
'testbrowser'
:
[
'zope.testbrowser >= 3.11.1'
,
'z3c.etestbrowser'
],
'benchmark'
:
[
name
+
'[testbrowser]'
]
,
'benchmark'
:
benchmark_install_require_list
,
'benchmark-report'
:
[
name
+
'[benchmark]'
,
'matplotlib'
,
'numpy'
],
'benchmark-report'
:
[
name
+
'[benchmark]'
,
'matplotlib'
,
'numpy'
],
'scalability_tester'
:
[
name
+
'[benchmark]'
,
'slapos.tool.nosqltester'
],
'scalability_tester'
:
[
name
+
'[benchmark]'
,
'slapos.tool.nosqltester'
],
},
},
...
...
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