-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
508b85a
commit 58d6cbc
Showing
4 changed files
with
38 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
from __future__ import annotations | ||
|
||
import platform | ||
from typing import Any | ||
|
||
from setuptools import (find_packages, | ||
setup) | ||
from setuptools import find_packages, setup | ||
|
||
project_base_url = 'https://github.com/lycantropos/rithm/' | ||
parameters = dict(packages=find_packages(exclude=('tests', 'tests.*')), | ||
url=project_base_url, | ||
download_url=project_base_url + 'archive/master.zip') | ||
parameters: dict[str, Any] = dict( | ||
packages=find_packages(exclude=('tests', 'tests.*')), | ||
url=project_base_url, | ||
download_url=project_base_url + 'archive/master.zip', | ||
) | ||
if platform.python_implementation() == 'CPython': | ||
from setuptools_rust import RustExtension | ||
|
||
parameters.update(rust_extensions=[RustExtension('rithm._crithm')], | ||
zip_safe=False) | ||
parameters.update( | ||
rust_extensions=[RustExtension('rithm._crithm')], zip_safe=False | ||
) | ||
setup(**parameters) |