|
1 | 1 | import codecs
|
2 | 2 | import os
|
3 | 3 | import os.path
|
4 |
| -from os.path import join |
5 | 4 |
|
6 | 5 | from setuptools import setup
|
7 | 6 |
|
8 |
| -import cffi_build.cffi_build as cffi_build |
9 |
| - |
10 | 7 |
|
11 | 8 | def read(rel_path):
|
12 | 9 | here = os.path.abspath(os.path.dirname(__file__))
|
@@ -38,27 +35,29 @@ def get_version(rel_path):
|
38 | 35 | f.write('\nallowOldEduRelease=7501\n')
|
39 | 36 |
|
40 | 37 |
|
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 |
| - |
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 | + |
| 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