forked from Chia-Network/bls-signatures
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use FetchContent to get pybind11 (Chia-Network#111)
* Use FetchContent to get pybind11 src * Only add_subdir for python-bindings * Update readme for CMake version and python version in setup.py
- Loading branch information
Showing
5 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,16 +31,6 @@ def run(self): | |
if cmake_version < '3.1.0': | ||
raise RuntimeError("CMake >= 3.1.0 is required on Windows") | ||
|
||
""" | ||
Work around pybind11's need to be on the filesystem | ||
""" | ||
if os.path.exists('.gitmodules'): | ||
try: | ||
subprocess.run(['git', 'submodule', 'update', '--init', '--recursive']) | ||
except OSError: | ||
raise RuntimeError("git is not available" | ||
+ ", ".join(e.name for e in self.extensions)) | ||
|
||
for ext in self.extensions: | ||
self.build_extension(ext) | ||
|
||
|
@@ -209,7 +199,7 @@ def build_extensions(self): | |
author='Mariano Sorgente', | ||
author_email='[email protected]', | ||
description='BLS signatures in c++ (python bindings)', | ||
python_requires='>3.1', | ||
python_requires='>3.7', | ||
install_requires=["wheel"], | ||
long_description=open('README.md').read(), | ||
long_description_content_type="text/markdown", | ||
|