File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,19 @@ Python adapter via callout for InterSystems Data Platforms.
4
4
# Installation
5
5
6
6
1 . Load ObjectScript code.
7
- 2 . Place callout DLL in ` bin ` folder.
7
+ 2 . Place callout DLL/SO in ` bin ` folder.
8
+
9
+ ## Windows
10
+
8
11
3 . Check that your ` PYTHONHOME ` environment variable points to Python 3.6.
9
12
4 . Check that your SYSTEM ` PATH ` environment variable has ` PYTHONHOME ` variable (or directory it points to).
10
13
14
+ ## Linux
15
+
16
+ 3 . Check that your SYSTEM ` PATH ` environment variable has ` /usr/lib ` , preferably at the begining
17
+
18
+ If you modified environment variables (for Windows or Linux) restart your InterSystems product.
19
+
11
20
# Use
12
21
13
22
1 . Call: ` do ##class(isc.py.Callout).Setup() ` once per systems start (add to ZSTART!)
@@ -45,3 +54,19 @@ Along with callout code and Interoperability adapter there's also a test Interop
45
54
46
55
Development of ObjectScript is done via [ cache-tort-git] ( https://github.com/MakarovS96/cache-tort-git ) in UDL mode.
47
56
Development of C code is done in Eclipse.
57
+
58
+ # Building
59
+
60
+ ## Windows
61
+
62
+ 1 . Install [ MinGW-w64] ( https://sourceforge.net/projects/mingw-w64/ ) you'll need ` mak ` and ` gcc `
63
+ 2 . Set ` GLOBALS_HOME ` environment variable to the root of Caché or Ensemble installation.
64
+ 3 . Set ` PYTHONHOME ` environment variable to the root of Python3 installation. Usually ` C:\Users\<User>\AppData\Local\Programs\Python\Python3<X> `
65
+ 4 . Open MinGW bash.
66
+ 5 . In ` Repository\c\ ` execute ` make ` .
67
+
68
+ ## Linux
69
+
70
+ 1 . Add Python 3.6 repo: ` add-apt-repository ppa:jonathonf/python-3.6 ` and ` apt-get update `
71
+ 2 . Install: ` apt install python3.6 python3.6-dev libpython3.6-dev build-essential `
72
+ 2 . TBD. Get the binary from releases page (built for 3.6). Check [ issue 3] ( https://github.com/intersystems-ru/PythonAdapter/issues/3 ) for progress.
You can’t perform that action at this time.
0 commit comments