mirror of https://github.com/nucypher/nucypher.git
use subprocess for post develop install
parent
7962c47f56
commit
2337d08fae
|
@ -14,7 +14,7 @@ echo "Starting installation."
|
|||
|
||||
# GitHub's URL for the latest release, will redirect.
|
||||
LATEST_URL="https://github.com/CircleCI-Public/circleci-cli/releases/latest/"
|
||||
DESTDIR="${DESTDIR:-/usr/local/bin}"
|
||||
DESTDIR="${DESTDIR:-$HOME/.local/bin/}"
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
VERSION=$(curl -sLI -o /dev/null -w '%{url_effective}' $LATEST_URL | cut -d "v" -f 2)
|
||||
|
|
14
setup.py
14
setup.py
|
@ -27,8 +27,6 @@ from setuptools import setup, find_packages
|
|||
from setuptools.command.develop import develop
|
||||
from setuptools.command.install import install
|
||||
|
||||
from .scripts.installation.install_solc import download_solc_binary
|
||||
|
||||
#
|
||||
# Metadata
|
||||
#
|
||||
|
@ -83,11 +81,15 @@ class PostDevelopCommand(develop):
|
|||
"""
|
||||
Post-installation for development mode.
|
||||
Execute manually with python setup.py develop or automatically included with
|
||||
`pip install -e . -r dev-requirements.txt`
|
||||
`pip install -e . -r dev-requirements.txt`.
|
||||
"""
|
||||
def run(self):
|
||||
|
||||
# super
|
||||
develop.run(self)
|
||||
download_solc_binary()
|
||||
|
||||
# development setup scripts (pre-requirements)
|
||||
subprocess.call(f"scripts/installation/install_solc.py")
|
||||
subprocess.call(".circleci/install_circle_cli.sh")
|
||||
|
||||
#
|
||||
|
@ -134,7 +136,7 @@ setup(
|
|||
extras_require=EXTRAS,
|
||||
|
||||
# Package Data
|
||||
packages=find_packages(exclude=["tests"]),
|
||||
packages=find_packages(exclude=["tests", "scripts"]),
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
|
||||
|
@ -144,7 +146,7 @@ setup(
|
|||
'nucypher-deploy = nucypher.cli.commands.deploy:deploy',
|
||||
]},
|
||||
|
||||
# Utilities
|
||||
# setup.py commands
|
||||
cmdclass={
|
||||
'verify': VerifyVersionCommand,
|
||||
'develop': PostDevelopCommand
|
||||
|
|
Loading…
Reference in New Issue