Skip to content

Commit

Permalink
Update test_distribution.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed May 8, 2021
1 parent 09b70eb commit a96f066
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/test_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,8 @@ def test_source_distribution(virtualenv, tmpdir):
pytest.skip("no source distribution available")
assert len(sdists) == 1

skbuild_configure_options = "-DCMAKE_JOB_POOL_COMPILE:STRING=compile"
skbuild_configure_options += " -DCMAKE_JOB_POOL_LINK:STRING=link"
skbuild_configure_options += " '-DCMAKE_JOB_POOLS:STRING=compile=4;link=3'"
if os.path.exists("/usr/local/ssl"):
skbuild_configure_options = "-DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl " + skbuild_configure_options

virtualenv.env["SKBUILD_CONFIGURE_OPTIONS"] = skbuild_configure_options
if "SETUP_CMAKE_ARGS" in os.environ:
virtualenv.env["SKBUILD_CONFIGURE_OPTIONS"] = os.environ["SETUP_CMAKE_ARGS"]
virtualenv.run("pip install %s" % sdists[0])
assert "cmake" in virtualenv.installed_packages()

Expand Down

0 comments on commit a96f066

Please sign in to comment.