-
Notifications
You must be signed in to change notification settings - Fork 261
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
e7d2b41
commit 2b2e098
Showing
3 changed files
with
23 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[build-system] | ||
requires = ["setuptools", "numpy"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "imufusion" | ||
version = "1.2.5" | ||
description = "Fusion Python package" | ||
readme = { text = "See [github](https://github.com/xioTechnologies/Fusion) for documentation and examples.", content-type = "text/markdown" } | ||
authors = [{ name = "x-io Technologies Limited", email = "[email protected]" }] | ||
license = { file = "LICENSE.md" } | ||
classifiers = ["Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12"] # versions shown by pyversions badge in README | ||
|
||
[project.urls] | ||
Repository = "https://github.com/xioTechnologies/Fusion" | ||
|
||
[tool.setuptools] | ||
py-modules = [] # fix cibuildwheel error: "Multiple top-level packages discovered in a flat-layout" |
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,19 +1,7 @@ | ||
import numpy | ||
import os | ||
import shutil | ||
import sys | ||
from setuptools import setup, Extension | ||
|
||
for folder in ["build", "dist", "imufusion.egg-info"]: | ||
if os.path.exists(folder) and os.path.isdir(folder): | ||
shutil.rmtree(folder) | ||
|
||
if len(sys.argv) == 1: # if this script was called without arguments | ||
sys.argv.append("install") | ||
sys.argv.append("--user") | ||
|
||
github_url = "https://github.com/xioTechnologies/Fusion" | ||
|
||
ext_modules = Extension("imufusion", ["Python/Python-C-API/imufusion.c", | ||
"Fusion/FusionAhrs.c", | ||
"Fusion/FusionCompass.c", | ||
|
@@ -22,16 +10,4 @@ | |
define_macros=[("FUSION_USE_NORMAL_SQRT", None)], | ||
libraries=(["m"] if "linux" in sys.platform else [])) # link math library for Linux | ||
|
||
setup(name="imufusion", | ||
version="1.2.5", | ||
description="Fusion Python package", | ||
long_description="See [github](" + github_url + ") for documentation and examples.", | ||
long_description_content_type='text/markdown', | ||
url=github_url, | ||
author="x-io Technologies Limited", | ||
author_email="[email protected]", | ||
license="MIT", | ||
classifiers=["Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12"], # versions shown by pyversions badge in README | ||
ext_modules=[ext_modules]) | ||
setup(ext_modules=[ext_modules]) |