Skip to content

Commit 93cc87e

Browse files
authored
Use recent cytoolz and move cython installation to setup.py (#1794)
* use recent cytoolz * use recent cytoolz * use recent cytoolz
1 parent b7a89fe commit 93cc87e

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
blake2b-py
22
coloredlogs>=10.0
33
coincurve>=13.0.0
4-
cython
5-
cytoolz<0.12.0
4+
cytoolz>=0.12.0
65
asn1crypto>=0.22.0
76
configparser>=3.5.0
87
coverage<7.0,>6.0

setup.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@
88
2) #> twine upload dist/* #<specify bdist_wheel version to upload>; #optional --repository <testpypi> or --repository-url <testpypi-url>
99
"""
1010
from setuptools import setup, find_packages
11-
from setuptools.command.install import install
11+
from setuptools.command.install import install as _install
12+
from subprocess import check_call
13+
1214
import sys
1315
import os
1416
import io
1517

18+
19+
class InstallCommand(_install):
20+
def run(self):
21+
check_call([sys.executable, "-m", "pip", "install", "cython"])
22+
_install.run(self)
23+
24+
1625
# Package meta-data.
1726
NAME = "mythril"
1827
DESCRIPTION = "Security analysis tool for Ethereum smart contracts"
@@ -80,7 +89,7 @@ def get_requirements():
8089

8190
# Package version (vX.Y.Z). It must match git tag being used for CircleCI
8291
# deployment; otherwise the build will failed.
83-
class VerifyVersionCommand(install):
92+
class VerifyVersionCommand(_install):
8493
"""Custom command to verify that the git tag matches our version."""
8594

8695
description = "verify that the git tag matches our version"
@@ -126,5 +135,5 @@ def run(self):
126135
package_data={"mythril.analysis.templates": ["*"], "mythril.support.assets": ["*"]},
127136
include_package_data=True,
128137
entry_points={"console_scripts": ["myth=mythril.interfaces.cli:main"]},
129-
cmdclass={"verify": VerifyVersionCommand},
138+
cmdclass={"install": InstallCommand, "verify": VerifyVersionCommand},
130139
)

0 commit comments

Comments
 (0)