Skip to content

Latest commit

 

History

History
70 lines (38 loc) · 3.06 KB

Development_Enviroment.md

File metadata and controls

70 lines (38 loc) · 3.06 KB

Development Enviroment

Schematic Representation for Tool Working

Procedure to Setup the Development Enviroment

  1. 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.

  2. In Visual Studio Below mentioned workloads,

    • Python Development Workload with Python Native Development tools,

      Python Development Workload

      Python Development Workload Settings

    • Desktop Development using C++ Workload with C++/cli Support For V1XX Build Tools (Latest) and Windows App SDK C++ Templates,

      Desktop Development using C++

      Python Development Workload Settings

    Other Cpp tools can be installed if required.

  3. Open the PyAVEVAE3D.sln and Add AVEVA dlls references from the AVEVA installation directory for all the projects.

  4. 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.

  5. Make Sure the platform is configured as AVEVA & Python compatible architecture ( e.g. Win32 or x64 ) for builds.

  6. 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

Procedure to Build the Wheel Python Package

  1. Build PyAVEVAE3DExt project.

  2. Copy pyavevae3dext.pyd file from Build directory to pyavevae3dext directory.

  3. Open cmd and set path to the repository folder.

  4. Run any one of the below mentioned commands in cmd to build the wheel package.

    • py -m build
    • python setup.py sdist bdist_wheel
  5. To install the wheel package run any one of the below mentioned command.

    • pip install .
    • pip install -e .
  6. 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.