Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyrasite
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
Kirill Smelkov
pyrasite
Commits
8f7bec09
Commit
8f7bec09
authored
Mar 26, 2012
by
Luke Macken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require argparse on Python < 2.7 and < 3.2
parent
31a0fbbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
pkgs/fedora/pyrasite.spec
pkgs/fedora/pyrasite.spec
+5
-0
setup.py
setup.py
+10
-1
No files found.
pkgs/fedora/pyrasite.spec
View file @
8f7bec09
...
...
@@ -17,6 +17,11 @@ BuildRequires: python-nose
Requires: gdb >= 7.3
%if 0%{?rhel} <= 6
BuildRequires: python-argparse
Requires: python-argparse
%endif
%description
Pyrasite uses the GNU debugger to inject code into a running Python process.
It is comprised of a command-line tool, and a Python API. This package
...
...
setup.py
View file @
8f7bec09
import
sys
from
setuptools
import
setup
,
find_packages
version
=
'2.0beta9'
...
...
@@ -6,6 +7,14 @@ f = open('README.rst')
long_description
=
f
.
read
().
split
(
'split here'
)[
1
]
f
.
close
()
requirements
=
[]
if
sys
.
version_info
.
major
==
3
:
if
sys
.
version_info
.
minor
<
2
:
requirements
.
append
(
'argparse'
)
elif
sys
.
version_info
.
major
==
2
:
if
sys
.
version_info
.
minor
<
7
:
requirements
.
append
(
'argparse'
)
setup
(
name
=
'pyrasite'
,
version
=
version
,
description
=
"Inject code into a running Python process"
,
...
...
@@ -18,7 +27,7 @@ setup(name='pyrasite',
packages
=
find_packages
(
exclude
=
[
'ez_setup'
,
'examples'
,
'tests'
]),
include_package_data
=
True
,
zip_safe
=
False
,
install_requires
=
[]
,
install_requires
=
requirements
,
tests_require
=
[
'nose'
],
test_suite
=
'nose.collector'
,
entry_points
=
"""
...
...
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