Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Sep 7, 2024
1 parent 4653760 commit 571c3ba
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 19 deletions.
8 changes: 5 additions & 3 deletions ostap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ foreach(filename ${files})
endforeach()

# ========================================================================================
## additimal tests
## additiomal tests
# ========================================================================================
file(GLOB allfiles "${CMAKE_INSTALL_PREFIX}/${OSTAP_PYTHON_SITE_LOCAL}/ostap/*/*.py")
list(SORT allfiles)
Expand Down Expand Up @@ -383,8 +383,10 @@ add_test (NAME ostap.dependencies WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/Testing/


install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DESTINATION .
FILES_MATCHING PATTERN "*.py"
DESTINATION .
FILES_MATCHING
COMPONENT python
PATTERN "*.py"
PATTERN "*.#*" EXCLUDE )

## nosetests -w ../ostap/tools --exe --processes=16 --process-timeout=2000 -I '.*chopping.*'
12 changes: 12 additions & 0 deletions ostap/core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/env python
# -*- coding: utf-8 -*-
# =============================================================================
import sys, os
if sys.warnoptions or os.environ.get ( 'OSTAP_CMAKE_TEST', False ) :
import warnings
with warnings.catch_warnings():
warnings.simplefilter ( "always" )
import cppyy
# =============================================================================
## The END
# =============================================================================
4 changes: 2 additions & 2 deletions ostap/core/ostap_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
'all_strings' , ## all argumets of string types?
)
# =============================================================================
import math, os, array, cppyy
from sys import version_info as python_version
import sys, os, math, array, cppyy
from sys import version_info as python_version
# =============================================================================
# logging
# =============================================================================
Expand Down
9 changes: 7 additions & 2 deletions ostap/fitting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/usr/env python
# -*- coding: utf-8 -*-
# =============================================================================
import sys, os
if sys.warnoptions or os.environ.get ( 'OSTAP_CMAKE_TEST', False ) :
import warnings
with warnings.catch_warnings():
warnings.simplefilter ( "always" )
import cppyy
# =============================================================================
import ostap.fitting.rooreduce


# =============================================================================
## The END
# =============================================================================
2 changes: 1 addition & 1 deletion ostap/fixes/fixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @author Vanya BELYAEV [email protected]
# @date 2016-02-23
# =============================================================================
"""Couple of minor fixes for Ostap
""" Couple of minor fixes for Ostap
"""
# =============================================================================
__version__ = '$Revision$'
Expand Down
5 changes: 0 additions & 5 deletions ostap/histos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
# =============================================================================
from ostap.core.core import VE
import ostap.histos.graph_reduce
## import ostap.histos.histos
## import ostap.histos.graphs
## import ostap.histos.param
## import ostap.histos.compare

# =============================================================================
## The END
# =============================================================================
8 changes: 7 additions & 1 deletion ostap/math/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#!/usr/env python
# -*- coding: utf-8 -*-
# =============================================================================
import sys, os
if sys.warnoptions or os.environ.get ( 'OSTAP_CMAKE_TEST', False ) :
import warnings
with warnings.catch_warnings():
warnings.simplefilter ( "always" )
import cppyy
# =============================================================================
import ostap.math.reduce

# =============================================================================
## The END
# =============================================================================
12 changes: 7 additions & 5 deletions source/CMakeROOT_6_23.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -251,19 +251,21 @@ install ( TARGETS ostap EXPORT ostap-export
LIBRARY DESTINATION lib
INCLUDES DESTINATION include )

install ( TARGETS ostapDict LIBRARY DESTINATION lib )
install ( TARGETS ostapDict LIBRARY DESTINATION lib COMPONENT libraries )

install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/Ostap
DESTINATION include
FILES_MATCHING
COMPONENT headers
PATTERN "*.h"
PATTERN "*.hpp"
PATTERN "*.icpp"
PATTERN "*#*" EXCLUDE )
install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/Ostap/Config.h DESTINATION include/Ostap )
install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/ostap_rdict.pcm DESTINATION lib )
install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/ostapDict.rootmap DESTINATION lib )
install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/build.config DESTINATION lib )

install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/Ostap/Config.h DESTINATION include/Ostap COMPONENT headers )
install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/ostap_rdict.pcm DESTINATION lib COMPONENT libraries )
install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/ostapDict.rootmap DESTINATION lib COMPONENT libraries )
install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/build.config DESTINATION lib COMPONENT libraroes )

install(EXPORT ostap-export
FILE OstapTargets.cmake
Expand Down

0 comments on commit 571c3ba

Please sign in to comment.