- The Schematic Representation for the Working of the module available in documentation folder.
-
Install Python compatible with your AVEVA Module.
For Current Implimentation E3D Module is x86 application. So, Python 3.10.4 32-Bit is installed in the system. If you are using multiple modules having different comptible platform architecture, Please set the paths accordingly while starting the application to call the python module from correct path.
-
In Visual Studio Below mentioned workloads,
-
Python Development Workload with Python Native Development tools,
-
Desktop Development using C++ Workload with C++/cli Support For V1XX Build Tools (Latest) and Windows App SDK C++ Templates,
Other Cpp tools can be installed if required.
-
-
Open the PyAVEVAE3D.sln and Add AVEVA dlls references from the AVEVA installation directory for all the projects.
-
Update Paths for C files and libraries to embaded python in the projects as per your environment.
-
Select PyAVEVAE3DExt Project > Right Click > VC++ Directories >
Include Directories > Add
Path to Python Installation Directory/include
Library Directories > Add
Path to Python Installation Directory/libs
Similarly add the paths for other project e.g. PyAVEVAInteraction.
-
-
Make Sure the platform is configured as AVEVA & Python compatible architecture ( e.g. Win32 or x64 ) for builds.
-
If you are planning to use TCL/TK, The following paths are required to be added into the enviroment.
set TCL_LIBRARY=Path to Python Installation Directory\tcl\tcl8.6
set TK_LIBRARY=Path to Python Installation Directory\tcl\tk8.6
-
Build PyAVEVAE3DExt project.
-
Copy pyavevae3dext.pyd file from Build directory to pyavevae3dext directory.
-
Open cmd and set path to the repository folder.
-
Run any one of the below mentioned commands in cmd to build the wheel package.
py -m build
python setup.py sdist bdist_wheel
-
To install the wheel package run any one of the below mentioned command.
pip install .
pip install -e .
-
if you wish to upload PiPy use any one of the following command depending on your requirement,
python -m twine upload --repository dist/*
python -m twine upload --repository testpypi dist/*
if required, pass
--verbose
argument in above commands to see the logs.