pyLingo -- The Python interface to LINGO API

The pyLingo package is located at "\Lingo18\Programming Samples".
Before installing the pyLingo package, the following steps should have been taken.

1. Download and install LINGO 18 ( http://www.lindo.com )

2. Download and install Python ( https://www.python.org/downloads )

3. Download and install Numpy ( http://www.numpy.org )

4. (For Windows users) download and install Microsoft Visual C++ compiler,
   
   for details on which version of MSVC to be installed, 

   please refer to https://wiki.python.org/moin/WindowsCompilers

5. (For Linux users) make sure you have gcc compiler installed, otherwise download and 

   install it ( https://gcc.gnu.org/install/download.html )


******************* Installation for Windows *******************

NOTE: Make sure to run the command window as Administrator to perform these steps.

0. Open a Dos command prompt

1. Check whether environment variable LINGO_18_HOME (for 32bit) or LINGO64_18_HOME (for 64bits) 
   has been set to the installation path of LINGO. If not, set it with the following command
   
   > set LINGO_18_HOME="c:/lingo18"

2. Navigate to the folder Python (typically it is located in your 
   %LINGO_18_HOME%\Programming Samples folder)

3. Run the following command to build the pyLingo package.

   > python setup.py build --compiler=msvc

4. Run the following command sentence to install the pyLingo package.
   
   > python setup.py install

5. Run the samples in python/example folder.



******************* Installation for Linux or other Unix-like systems *******************

NOTE: Make sure to login as the 'root' user to perform these steps.

0. Open a shell terminal

1. Set environment variable LINGO_18_HOME (for 32bit) or LINGO64_18_HOME (for 64bits)  
   to the installation path of LINGO. e.g. 
      
   $ export LINGO_18_HOME="/opt/lingo18"
   
   To automatically set this variable, please add the above command to your ~/.bashrc or ~/.bash_profile file.

2. Navigate to the folder python (typically it is located in your $LINGO_18_HOME/programming_samples folder)

3. Run the following command to build the pyLingo package.
     
   $ python setup.py build

4. Run the following command sentence to install the pyLingo package.
   
   $ python setup.py install

5. Run the samples in python/example folder.

