From 3b23367fa7aafe60a3d657a4b0aeff877f16fc17 Mon Sep 17 00:00:00 2001 From: Eugene Teoh <50418168+eugeneteoh@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:14:26 +0100 Subject: [PATCH] Fix cffi dependency (#380) * Fix cffi dependency * Quick update --- setup.py | 53 ++++++++++++++++++++++++++--------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/setup.py b/setup.py index 2c5f35a..12b29dd 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,9 @@ import codecs import os import os.path -from os.path import join from setuptools import setup -import cffi_build.cffi_build as cffi_build - def read(rel_path): here = os.path.abspath(os.path.dirname(__file__)) @@ -38,27 +35,29 @@ def get_version(rel_path): f.write('\nallowOldEduRelease=7501\n') -setup(name='PyRep', - # Version A.B.C.D. - # A.B.C info corresponds to the CoppeliaSim version needed. - # D info corresponds to the PyRep version. - version=get_version("pyrep/__init__.py"), - description='Python CoppeliaSim wrapper', - author='Stephen James', - author_email='slj12@ic.ac.uk', - url='https://www.doc.ic.ac.uk/~slj12', - packages=['pyrep', - 'pyrep.backend', - 'pyrep.objects', - 'pyrep.sensors', - 'pyrep.robots', - 'pyrep.robots.arms', - 'pyrep.robots.end_effectors', - 'pyrep.robots.mobiles', - 'pyrep.robots.configuration_paths', - 'pyrep.textures', - 'pyrep.misc', - ], - ext_modules=[cffi_build.ffibuilder.distutils_extension( - join('build', 'pyrep', 'backend'))], - ) +setup( + name='PyRep', + # Version A.B.C.D. + # A.B.C info corresponds to the CoppeliaSim version needed. + # D info corresponds to the PyRep version. + version=get_version("pyrep/__init__.py"), + description='Python CoppeliaSim wrapper', + author='Stephen James', + author_email='slj12@ic.ac.uk', + url='https://www.doc.ic.ac.uk/~slj12', + packages=['pyrep', + 'pyrep.backend', + 'pyrep.objects', + 'pyrep.sensors', + 'pyrep.robots', + 'pyrep.robots.arms', + 'pyrep.robots.end_effectors', + 'pyrep.robots.mobiles', + 'pyrep.robots.configuration_paths', + 'pyrep.textures', + 'pyrep.misc', + ], + setup_requires=["cffi>=1.0.0"], + cffi_modules=["cffi_build/cffi_build.py:ffibuilder"], + install_requires=["cffi>=1.0.0"], +)