forked from intuitive-robots/beso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (24 loc) · 747 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from setuptools import setup, find_packages
from setuptools.command.build_ext import build_ext
import subprocess
import os
class CMakeBuild(build_ext):
def run(self):
source_dir = os.path.abspath("env")
build_dir = os.path.abspath("env/build")
if not os.path.exists(build_dir):
os.makedirs(build_dir)
subprocess.check_call(["cmake", source_dir], cwd=build_dir)
subprocess.check_call(["cmake", "--build", build_dir])
super().run()
setup(
name="locodiff",
version="1.0",
description="Quadruped locomotion using diffusion models",
license="MIT",
author="Reece O'Mahoney",
packages=find_packages(),
cmdclass={
"build_ext": CMakeBuild,
},
)