Skip to content

Commit

Permalink
entry point moved to setup.py instead of meta.yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
AtefBN authored and AtefBN committed Oct 28, 2020
1 parent fff3c81 commit 4ea634c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 30 deletions.
28 changes: 0 additions & 28 deletions sdt/bin/sdconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,34 +137,6 @@ def is_event_enabled(event,project):
else:
sys.exit('Warning: Environment not set up for synda to operate properly. Exiting.')


# commented on 08/08 to be replaced
""" if os.environ.get('SDT_USER_ENV','0')=='1':
# Being here means we use machine-wide synda environment as non-admin synda user,
# and so can only perform RO task (eg synda search, synda get, etc..)
# Also it means we are not in daemon mode (daemon mode is currently only
# available for admin-user. see TAG43J2K253J43 for more infos.)
# Non fully working as multi-daemon support not implemented yet. But works for
# basic command (eg 'synda get')
print('Daemon mode is inaccessible from this installation. '
'Please report to devs in case you think this is an error.')
user_paths.create_tree()
paths=user_paths
elif not os.path.isfile(os.path.join('ST_HOME', 'sdt.conf')):
print('Installation from scratch...')
from sdsetuputils import PostInstallCommand
pic = PostInstallCommand()
pic.run()
paths=install_paths
else:
# being here means synda application can only be used by root or admin (admin means being in the synda group)
print('here')
print(os.path.isfile(os.path.join('ST_HOME','sdt.conf')))
sdtools.print_stderr(sdi18n.m0028)
sys.exit(1)
"""
#hack
paths=install_paths

Expand Down
2 changes: 1 addition & 1 deletion sdt/bin/sdconst.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
SECURITY_DIR_MIXED='mixed'

#Synda release parameters
SYNDA_VERSION = '3.11'
SYNDA_VERSION = '3.13'

# miscellaneous
GET_FILES_CACHING = True # change to False to disable caching logic in sdfiledao.get_files.
1 change: 0 additions & 1 deletion sdt/bin/sdsqlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def get_dict(instance,keys):
d[k]=instance.__dict__[k]
else:
try:
print('here')
d['timestamp'] = instance.__dict__['_timestamp']
except AttributeError as ae:
print('FAILED')
Expand Down

0 comments on commit 4ea634c

Please sign in to comment.