docs: add documentation for low power device setup and improve setup script (#206)
This commit is contained in:
1 parent
1104614608
commit
efbad18275
2 files changed
+19
-7
No files matched your search
+9
-7
@@ -20,6 +20,13 @@ builder = venv.EnvBuilder(with_pip=True)
|
||||
context = builder.ensure_directories(_VENV_DIR)
|
||||
builder.create(_VENV_DIR)
|
||||
|
||||
# Set environment variables
|
||||
env = {}
|
||||
if args.cxxflags:
|
||||
env["CXXFLAGS"] = args.cxxflags
|
||||
if args.makeflags:
|
||||
env["MAKEFLAGS"] = args.makeflags
|
||||
|
||||
# Upgrade dependencies
|
||||
pip = [context.env_exe, "-m", "pip"]
|
||||
subprocess.check_call(pip + ["install", "--upgrade", "pip"])
|
||||
@@ -28,14 +35,9 @@ subprocess.check_call(pip + ["install", "--upgrade", "setuptools", "wheel"])
|
||||
# Install requirements
|
||||
subprocess.check_call(pip + ["install", "-e", str(_PROGRAM_DIR)])
|
||||
|
||||
|
||||
# Install dev requirements
|
||||
if args.dev:
|
||||
# Install dev requirements
|
||||
env = {}
|
||||
if args.cxxflags:
|
||||
env["CXXFLAGS"] = args.cxxflags
|
||||
if args.makeflags:
|
||||
env["MAKEFLAGS"] = args.makeflags
|
||||
|
||||
subprocess.check_call(
|
||||
pip + ["install", "-e", f"{_PROGRAM_DIR}[dev]"],
|
||||
env={**dict(os.environ), **env}
|
||||
|
||||
Reference in new issue
Block a user