Initial import of the radare2 pip package

This commit is contained in:
pancake 2024-04-30 19:17:13 +02:00
parent 59f1cb573d
commit 78575204de
4 changed files with 53 additions and 0 deletions

9
dist/pip/Makefile vendored Normal file
View File

@ -0,0 +1,9 @@
PYTHON?=python3
all:
$(PYTHON) setup.py build
pub:
$(PYTHON) setup.py build sdist
twine check dist/*
twine upload -u __token__ --repository-url https://upload.pypi.org/legacy/ --verbose dist/*

9
dist/pip/README.md vendored Normal file
View File

@ -0,0 +1,9 @@
# radare2 for pip
This package is boilerplate to install r2pipe and r2env.
You must then run r2env to select the version of radare2 you want.
[radare2](https://www.radare.org)
--pancake

2
dist/pip/radare2/main.py vendored Normal file
View File

@ -0,0 +1,2 @@
def main():
print("Use: r2env install radare2")

33
dist/pip/setup.py vendored Normal file
View File

@ -0,0 +1,33 @@
from setuptools import setup
import os
def popen(x):
res = os.popen(x).read()
return res.strip() # decode("utf-8").strip()
with open("README.md") as fd:
readme = fd.read()
r2_version = popen("../../configure -qV")
setup(
name='radare2',
version=r2_version,
description="The UNIX friendly reverse engineering framework and toolchain",
long_description=readme,
long_description_content_type="text/markdown",
author="pancake",
author_email="pancake@nopcode.org",
url="https://www.radare.org/",
packages=[
'radare2',
],
install_requires=[
'r2pipe',
'r2env'
],
entry_points = {
'console_scripts': [
'r2 = radare2.main:main'
]
},
)