121 Commits

Author SHA1 Message Date
koennecke bcce0bbab2 Changes necessary to compile the pyDevSup module for RHEL8 and EPICS 7.0.7 2024-01-12 13:52:35 +01:00
koennecke 65519f950a pyDevSup working as a module in require system 2020-08-21 14:31:34 +02:00
Michael Davidsaver 3620e1e013 3.14 compat 2020-03-03 11:22:00 -08:00
Michael Davidsaver 849fa492f0 more py3 2019-09-03 20:52:13 -07:00
Michael Davidsaver 89ee280cd0 py3 2019-08-30 21:01:55 -07:00
Michael Davidsaver 1c6ce2aca9 fix UINT64 for Base >=3.16 2019-08-14 22:06:43 -07:00
Michael Davidsaver e2ca483507 avoid deadlock between GIL and scan locks 2019-06-05 12:04:00 +02:00
Michael Davidsaver 1b95827718 Merge remote-tracking branch 'origin/devel'
* origin/devel:
  Python init: don't install sig handlers. Fix #5
  Fix pyIocApp's Makefile
  testing cleanup
  cleanup and inithook
  minor
  update doc
  Base 3.14
  py3
  travis-ci update
  test field access and dset
  start PDB unittest
  rework to separate out python module
  separate softIocPy build
  Makefile updates from p4p

# Conflicts:
#	devsupApp/src/dbapi.c
#	devsupApp/src/pydevsup.h
2019-03-12 17:18:05 -07:00
Sebastian Marsching f18bdb7b56 Fix build on macOS.
This changeset consists of two changes:

The declaration of the pyInitLastState global variable is moved from
pydevsup.h to setup.c. This is needed to avoid an "duplicate symbols"
error when linking. As this variable is only used in setup.c anyway,
there is no downside in moving its declaration there.

The log example application is now only built on Linux. As it depends
on the inotify API, which is Linux-specific, it cannot be reasonably
built on other platforms. As it is not needed for the pyDevSup to work,
it is OK to built it without this application.
2019-02-25 08:37:52 -08:00
Daron Chabot 0d7e92ef80 MNT: py2/3 compatible dict methods 2019-02-24 07:29:06 -08:00
Michael Davidsaver 93a4d05866 testing cleanup 2018-11-04 17:05:03 -08:00
Michael Davidsaver 574ca20bdb cleanup and inithook 2018-11-04 16:47:23 -08:00
Michael Davidsaver 6b8d7ff7c5 minor 2018-11-04 16:30:39 -08:00
Michael Davidsaver dcf81c3744 update doc 2018-11-04 16:26:46 -08:00
Michael Davidsaver 4b05477417 Base 3.14 2018-11-04 16:26:46 -08:00
Michael Davidsaver 2c34d9df52 py3 2018-11-04 15:42:34 -08:00
Michael Davidsaver 11a93fce21 test field access and dset 2018-11-04 13:04:40 -08:00
Michael Davidsaver a3524c5aa0 start PDB unittest 2018-11-04 11:38:18 -08:00
Michael Davidsaver f428d2a4e4 rework to separate out python module
Remove the magic from the magic _db* modules.
Combine as one 'devsup._dbapi'.

libpyDevSup exists only to bootstrap python
interpreter in IOCs.
2018-11-03 13:33:36 -07:00
Michael Davidsaver 662b518338 separate softIocPy build 2018-11-02 17:12:31 -07:00
Philipp 62b4a046bc VAL asignment for waveforms 2018-10-31 22:13:27 +01:00
Philipp 54fabd3a9d Handle string waveforms 2018-10-31 21:23:33 +01:00
Philipp Niedermayer 4269c69c23 Use datetime.timestamp()
Includes nanoseconds and is timezone independend
Available from python 3.3 (older versions will still use timetuple)
2018-04-17 10:50:51 -07:00
Philipp Niedermayer 2e51578ec8 Fixes #6 2018-04-17 10:50:51 -07:00
Michael Davidsaver d6685b49b9 use inspect 2018-01-24 15:48:56 -08:00
Michael Davidsaver ab867e3bee add SKIP_DB_INSTALL for package build 2017-05-12 15:29:57 -04:00
Michael Davidsaver ca85bb1cb8 shared lib deps 2016-04-22 12:08:03 -04:00
Michael Davidsaver 9be6038aab simpler unicode to char* 2015-08-04 10:10:16 -04:00
Michael Davidsaver 9d735107a4 add AsyncOffload
device support helper for async. (eg. aSub)
2015-06-16 10:50:34 -04:00
Michael Davidsaver 0f2768fe2c update Field doc 2015-06-12 16:44:58 -04:00
Michael Davidsaver 7ac846141f Field get/put of arrays
Adjust Field.getval() and Field.putval() to work
with numpy.ndarray.

putval() handle assign scalar to array

Field.getarray() for DBF_STRING returns 2d array
returns N by MAX_STRING_SIZE
2015-06-12 16:44:56 -04:00
Michael Davidsaver 3b227ec7fd add aSub support 2015-06-12 16:44:56 -04:00
Michael Davidsaver e7510fa315 update ptable dset 2015-03-24 14:31:52 -04:00
Michael Davidsaver b93aee9496 disect: track types by name string 2015-01-04 12:37:43 -05:00
Michael Davidsaver 89b411990a Reference counter debugging 2015-01-04 12:09:10 -05:00
Michael Davidsaver 7d527103bf dbrec: improper use of DBENTRY
use of DBENTRY after free and leak of same
2015-01-04 09:20:44 -05:00
Michael Davidsaver 46bc99a57d devsup.db: Record.setTime() accept float 2014-12-09 11:12:50 -05:00
Michael Davidsaver 79cf57d748 devsup.db: add initHook() dectorator 2014-12-09 11:12:24 -05:00
Michael Davidsaver 32b8145fc7 fix ref count mistake 2014-06-20 14:51:52 -04:00
Michael Davidsaver 6a1d485230 fix 2.6 build 2014-06-16 18:25:18 -04:00
Michael Davidsaver ee2cb409c2 update documentation 2014-06-16 17:55:15 -04:00
Michael Davidsaver 9b5b9687b4 softIocPy auto-load dbd
Re-use softMain.c from Base
2014-06-16 16:35:01 -04:00
Michael Davidsaver 56ea9de16e prepend PWD to PYTHONPATH 2014-06-16 16:22:24 -04:00
Michael Davidsaver d10ecd5d69 optionally include autosave, caPutLog, and/or devIocStats 2014-06-16 15:02:15 -04:00
Michael Davidsaver 34bff5c001 allow access to some global IOC calls
Might be useful at some point...
2014-03-08 11:09:15 -05:00
Michael Davidsaver 2c19a4b392 remove unused 2014-03-08 09:24:52 -05:00
Michael Davidsaver c947b185ce __enter__ return self
enables 'with X as Y' syntax
2014-02-26 09:51:42 -05:00
Michael Davidsaver 2f33de5c39 fix some error handling 2014-02-26 09:49:38 -05:00
Michael Davidsaver 5378b540b6 initial version of parameter table 2014-02-08 12:39:13 -05:00
Michael Davidsaver 7c05753052 allow support module name in info() tag
Gives the option of reducing the input link
length and preventing runtime switching of
module.
2014-02-08 12:39:13 -05:00