-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make adPython work on Windows. Change how adPython calls into the embedded Python to use PyGILState_Ensure() and PyGILState_Release() which is appropriate for calling from non-Python-created threads which is the case for adPython which is called from areaDetector-created threads. Without this change, adPython hangs on Windows. The Python calling idiom is documented in the following: * https://docs.python.org/2/c-api/init.html#non-python-created-threads * https://stackoverflow.com/a/4975906 * https://bugs.python.org/issue1720250#msg57619 Install the plugin scripts so that adPython can reference an installed pathname rather than a source pathname. Remove the automatic determination of the Python version, include pathnames, library pathnames, etc. by executing external commands from Make since it did not work on Windows. Replace that with explicit definitions in configure/CONFIG_SITE.
- Loading branch information
Showing
9 changed files
with
176 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
TOP=../.. | ||
include $(TOP)/configure/CONFIG | ||
#---------------------------------------- | ||
# ADD MACRO DEFINITIONS AFTER THIS LINE | ||
|
||
#---------------------------------------------------- | ||
# Install scripts | ||
PLUGINSCRIPTS += adPythonBarCode.py | ||
PLUGINSCRIPTS += adPythonCircle.py | ||
PLUGINSCRIPTS += adPythonCrystalDroplet.py | ||
PLUGINSCRIPTS += adPythonCrystalFeatureMatch.py | ||
PLUGINSCRIPTS += adPythonDataMatrix.py | ||
PLUGINSCRIPTS += adPythonFocus.py | ||
PLUGINSCRIPTS += adPythonGaussian2DFitter.py | ||
PLUGINSCRIPTS += adPythonMitegen.py | ||
PLUGINSCRIPTS += adPythonMorph.py | ||
PLUGINSCRIPTS += adPythonMxSampleDetect.py | ||
PLUGINSCRIPTS += adPythonPowerMean.py | ||
PLUGINSCRIPTS += adPythonRotate.py | ||
PLUGINSCRIPTS += adPythonTemplate.py | ||
PLUGINSCRIPTS += adPythonTransfer.py | ||
PLUGINSCRIPTS += transferclient.py | ||
|
||
include $(TOP)/configure/RULES | ||
#---------------------------------------- | ||
# ADD RULES AFTER THIS LINE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FILE_TYPE += PLUGINSCRIPTS | ||
INSTALL_PLUGINSCRIPTS = $(INSTALL_LOCATION)/plugin-scripts |
Oops, something went wrong.