#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Std lib imports
import glob
import os

# Non-std lib imports
from setuptools import Extension, find_packages, setup


# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
    name="fastnumbers",
    version="3.2.1",
    python_requires=">=3.6",
    packages=find_packages(where="src"),
    package_dir={"": "src"},
    package_data={"fastnumbers": ["py.typed", "*.pyi"]},
    zip_safe=False,
    ext_modules=[
        Extension(
            "fastnumbers.fastnumbers",
            sorted(glob.glob("src/*.c")),
            include_dirs=[os.path.abspath(os.path.join("include"))],
            extra_compile_args=[],
        )
    ],
)

#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Std lib imports
import glob
import os

# Non-std lib imports
from setuptools import Extension, find_packages, setup


# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
    name="fastnumbers",
    version="3.2.1",
    python_requires=">=3.6",
    packages=find_packages(where="src"),
    package_dir={"": "src"},
    package_data={"fastnumbers": ["py.typed", "*.pyi"]},
    zip_safe=False,
    ext_modules=[
        Extension(
            "fastnumbers.fastnumbers",
            sorted(glob.glob("src/*.c")),
            include_dirs=[os.path.abspath(os.path.join("include"))],
            extra_compile_args=[],
            extra_link_args=["-lm"],
        )
    ],
)

Add -lm as floor() is used
Add -lm as floor() is used

This fixes build on armv7hl:
/usr/bin/ld: build/temp.linux-armv8l-3.10/src/numbers.o: in function `_PyFloat_is_Intlike':
/home/iurt/rpmbuild/BUILD/fastnumbers-3.2.1/src/numbers.c:69: undefined reference to `floor'