Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup-aarch64.py #24

Open
HoneyPatouceul opened this issue Aug 9, 2017 · 0 comments
Open

setup-aarch64.py #24

HoneyPatouceul opened this issue Aug 9, 2017 · 0 comments

Comments

@HoneyPatouceul
Copy link

I have written a setup-aarch64.py for arm64, worked fine for me:
from distutils.core import setup
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import os
os.environ['CFLAGS'] = "-I/usr/include/libusb-1.0"
os.environ['LDFLAGS'] = "-L/usr/lib/aarch64-linux-gnu -lusb-1.0 -ludev -lrt"

setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("hid", ["hid.pyx", "hid-libusb.c"],
libraries=["usb-1.0", "udev", "rt"])]
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant