Skip to content

Commit 87eda5a

Browse files
committed
2 parents 8a97e1d + c2a56a3 commit 87eda5a

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ Python adapter via callout for InterSystems Data Platforms.
44
# Installation
55

66
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+
811
3. Check that your `PYTHONHOME` environment variable points to Python 3.6.
912
4. Check that your SYSTEM `PATH` environment variable has `PYTHONHOME` variable (or directory it points to).
1013

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+
1120
# Use
1221

1322
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
4554

4655
Development of ObjectScript is done via [cache-tort-git](https://github.com/MakarovS96/cache-tort-git) in UDL mode.
4756
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.

0 commit comments

Comments
 (0)