reorganize script folders: more reasonable packaging

release/4.3a0
Duy-Nguyen Ta 2016-12-16 14:17:15 -05:00
parent 126de1b8a4
commit 7abcdb1b45
22 changed files with 12 additions and 13 deletions

View File

@ -1,7 +1,7 @@
# Set up cache options
set(GTSAM_CYTHON_INSTALL_PATH "" CACHE PATH "Cython toolbox destination, blank defaults to CMAKE_INSTALL_PREFIX/gtsam_cython")
if(NOT GTSAM_CYTHON_INSTALL_PATH)
set(GTSAM_CYTHON_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/gtsam_cython")
set(GTSAM_CYTHON_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/cython")
endif()
# User-friendly Cython wrapping and installing function.
@ -70,7 +70,6 @@ function(install_cython_wrapped_library interface_header generated_files_path in
# NOTE: only installs .pxd and .pyx and binary files (not .cpp) - the trailing slash on the directory name
# here prevents creating the top-level module name directory in the destination.
message(STATUS "Installing Cython Toolbox to ${install_path}") #${GTSAM_CYTHON_INSTALL_PATH}")
message(generated_files_path: "${generated_files_path}")
if(GTSAM_BUILD_TYPE_POSTFIXES)
foreach(build_type ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER "${build_type}" build_type_upper)

View File

@ -1,4 +1,4 @@
# Install cython components
include(GtsamCythonWrap)
# install scripts and tests
install_cython_scripts("${CMAKE_SOURCE_DIR}/cython/" "*.py")
install_cython_scripts("${CMAKE_SOURCE_DIR}/cython/gtsam" "*.py")

View File

@ -5,7 +5,7 @@ won't be discovered.
"""
from gtsam.gtsam import *
import numpy as np
from gtsam_utils import Vector, Matrix
from gtsam.utils import Vector, Matrix
r = Rot3()
print(r)

View File

@ -2,7 +2,7 @@ import unittest
from gtsam import *
from math import *
import numpy as np
from gtsam_utils import Matrix, Vector
from gtsam.utils import Matrix, Vector
class TestJacobianFactor(unittest.TestCase):

View File

@ -1,6 +1,6 @@
import unittest
from gtsam import *
from gtsam_utils import *
from gtsam.utils import *
from math import *
import numpy as np

View File

@ -2,7 +2,7 @@ import unittest
from gtsam import *
from math import *
import numpy as np
from gtsam_utils.circlePose3 import *
from gtsam.utils.circlePose3 import *
class TestPose3SLAMExample(unittest.TestCase):

View File

@ -2,8 +2,8 @@ import unittest
from gtsam import *
from math import *
import numpy as np
from gtsam_utils import Vector, Matrix
import gtsam_utils.visual_data_generator as generator
from gtsam.utils import Vector, Matrix
import gtsam.utils.visual_data_generator as generator
class TestSFMExample(unittest.TestCase):

View File

@ -2,7 +2,7 @@ import unittest
from gtsam import *
from math import *
import numpy as np
from gtsam_utils import Vector, Matrix
from gtsam.utils import Vector, Matrix
class TestStereoVOExample(unittest.TestCase):

View File

@ -2,9 +2,9 @@ import unittest
from gtsam import *
from math import *
import numpy as np
from gtsam_utils import Vector, Matrix
import gtsam_utils.visual_data_generator as generator
import gtsam_utils.visual_isam as visual_isam
from gtsam.utils import Vector, Matrix
import gtsam.utils.visual_data_generator as generator
import gtsam.utils.visual_isam as visual_isam
class TestVisualISAMExample(unittest.TestCase):