-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ad6816
commit f354821
Showing
7 changed files
with
94 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
exclude rednose/**/*.o | ||
include SConstruct | ||
include rednose/SConscript | ||
include examples/SConscript | ||
recursive-include site_scons * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | ||
|
||
cd $DIR | ||
|
||
SUDO="" | ||
|
||
# Use sudo if not root | ||
if [[ ! $(id -u) -eq 0 ]]; then | ||
if [[ -z $(which sudo) ]]; then | ||
echo "Please install sudo or run as root" | ||
exit 1 | ||
fi | ||
SUDO="sudo" | ||
fi | ||
|
||
$SUDO apt-get update | ||
$SUDO apt-get install -y --no-install-recommends capnproto libcapnp-dev clang wget git autoconf libtool curl make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl libeigen3-dev python3-pip python3-dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
from setuptools import Command, setup | ||
from setuptools.command.build import build | ||
import subprocess | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
class SconsBuild(Command): | ||
def initialize_options(self) -> None: | ||
pass | ||
|
||
def finalize_options(self) -> None: | ||
pass | ||
|
||
def run(self) -> None: | ||
subprocess.run(["scons -j$(nproc)"], shell=True).check_returncode() | ||
|
||
class CustomBuild(build): | ||
sub_commands = [('scons_build', None)] + build.sub_commands | ||
|
||
setup( | ||
name='rednose', | ||
version='0.0.1', | ||
url='https://github.com/commaai/rednose', | ||
author='comma.ai', | ||
author_email='[email protected]', | ||
packages=find_packages(), | ||
platforms='any', | ||
license='MIT', | ||
package_data={'': ['helpers/chi2_lookup_table.npy', 'templates/*']}, | ||
install_requires=[ | ||
'sympy', | ||
'numpy', | ||
'scipy', | ||
'tqdm', | ||
'cffi', | ||
], | ||
ext_modules=[], | ||
description="Kalman filter library", | ||
long_description='See https://github.com/commaai/rednose', | ||
) | ||
packages = ["rednose", "examples", "rednose.helpers"], | ||
package_data={'': ['**/*.cc', '**/*.c', '**/*.h', '**/*.pxd', '**/*.pyx', '**/*.py', '**/*.so', '**/*.npy']}, | ||
include_package_data=True, | ||
cmdclass={'build': CustomBuild, 'scons_build': SconsBuild} | ||
) |