Skip to content

Commit 3b23367

Browse files
authored
Fix cffi dependency (#380)
* Fix cffi dependency * Quick update
1 parent fe521ce commit 3b23367

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

setup.py

+26-27
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import codecs
22
import os
33
import os.path
4-
from os.path import join
54

65
from setuptools import setup
76

8-
import cffi_build.cffi_build as cffi_build
9-
107

118
def read(rel_path):
129
here = os.path.abspath(os.path.dirname(__file__))
@@ -38,27 +35,29 @@ def get_version(rel_path):
3835
f.write('\nallowOldEduRelease=7501\n')
3936

4037

41-
setup(name='PyRep',
42-
# Version A.B.C.D.
43-
# A.B.C info corresponds to the CoppeliaSim version needed.
44-
# D info corresponds to the PyRep version.
45-
version=get_version("pyrep/__init__.py"),
46-
description='Python CoppeliaSim wrapper',
47-
author='Stephen James',
48-
author_email='[email protected]',
49-
url='https://www.doc.ic.ac.uk/~slj12',
50-
packages=['pyrep',
51-
'pyrep.backend',
52-
'pyrep.objects',
53-
'pyrep.sensors',
54-
'pyrep.robots',
55-
'pyrep.robots.arms',
56-
'pyrep.robots.end_effectors',
57-
'pyrep.robots.mobiles',
58-
'pyrep.robots.configuration_paths',
59-
'pyrep.textures',
60-
'pyrep.misc',
61-
],
62-
ext_modules=[cffi_build.ffibuilder.distutils_extension(
63-
join('build', 'pyrep', 'backend'))],
64-
)
38+
setup(
39+
name='PyRep',
40+
# Version A.B.C.D.
41+
# A.B.C info corresponds to the CoppeliaSim version needed.
42+
# D info corresponds to the PyRep version.
43+
version=get_version("pyrep/__init__.py"),
44+
description='Python CoppeliaSim wrapper',
45+
author='Stephen James',
46+
author_email='[email protected]',
47+
url='https://www.doc.ic.ac.uk/~slj12',
48+
packages=['pyrep',
49+
'pyrep.backend',
50+
'pyrep.objects',
51+
'pyrep.sensors',
52+
'pyrep.robots',
53+
'pyrep.robots.arms',
54+
'pyrep.robots.end_effectors',
55+
'pyrep.robots.mobiles',
56+
'pyrep.robots.configuration_paths',
57+
'pyrep.textures',
58+
'pyrep.misc',
59+
],
60+
setup_requires=["cffi>=1.0.0"],
61+
cffi_modules=["cffi_build/cffi_build.py:ffibuilder"],
62+
install_requires=["cffi>=1.0.0"],
63+
)

0 commit comments

Comments
 (0)