Skip to content
Snippets Groups Projects
Commit 1d35ed9d authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix package name for windows

parent a5bc5365
Branches
Tags
No related merge requests found
......@@ -138,7 +138,9 @@ set(CPACK_PACKAGE_VERSION ${ASAPO_VERSION})
set(CPACK_PACKAGE_RELEASE ${PACKAGE_RELEASE_SUFFIX})
set(CPACK_PACKAGE_CONTACT "IT")
set(CPACK_PACKAGE_VENDOR "DESY")
IF(NOT WIN32)
IF (WIN32)
set(CPACK_PACKAGE_FILE_NAME "asapo-${CPACK_PACKAGE_VERSION}.${CMAKE_SYSTEM_PROCESSOR}")
else()
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
endif()
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
......
import asapo_consumer,os
import _thread
import time
# Define a function for the thread
def print_time( threadName, broker):
while 1:
group_id = broker.generate_group_id()
print (group_id)
print ("consumer: ",asapo_consumer.__version__)
endpoint = "asap3-utl01.desy.de:8400"
beamtime = "asapo_test"
token = "KmUDdacgBzaOD3NIJvN1NmKGqWKtx0DK-NyPjdpeWkc="
broker = asapo_consumer.create_server_broker(endpoint,"/gpfs/petra3/scratch/yakubov/asapo_shared/test_facility/gpfs/test/2019/data/asapo_test",False, beamtime,"",token,6000)
try:
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
_thread.start_new_thread( print_time, ("Thread-1", broker, ) )
_thread.start_new_thread( print_time, ("Thread-2", broker, ) )
except:
print ("Error: unable to start thread")
while 1:
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment