Final changes for python 3 compatibility
This commit is contained in:
@@ -3,7 +3,6 @@ include INSTALL
|
||||
include LICENSE
|
||||
include MANIFEST.in
|
||||
include README
|
||||
include VERSION
|
||||
include HISTORY
|
||||
include setup.py
|
||||
include ez_setup.py
|
||||
|
||||
7
setup.py
7
setup.py
@@ -12,7 +12,10 @@ Description = open('README').read()
|
||||
|
||||
License = open('LICENSE').read()
|
||||
|
||||
Version = open('VERSION').read().strip()
|
||||
# read the version number safely from the constants.py file
|
||||
version_dict = {}
|
||||
exec(open('src/pulp/constants.py').read(), version_dict)
|
||||
VERSION = version_dict['VERSION']
|
||||
|
||||
#hack because pyparsing made version 2 python 3 specific
|
||||
if sys.version_info[0] <= 2:
|
||||
@@ -21,7 +24,7 @@ else:
|
||||
pyparsing_ver = 'pyparsing>=2.0.0'
|
||||
|
||||
setup(name="PuLP",
|
||||
version=Version,
|
||||
version=VERSION,
|
||||
description="""
|
||||
PuLP is an LP modeler written in python. PuLP can generate MPS or LP files
|
||||
and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear
|
||||
|
||||
@@ -29,8 +29,7 @@ Module file that imports all of the pulp functions
|
||||
|
||||
Copyright 2007- Stuart Mitchell (s.mitchell@auckland.ac.nz)
|
||||
"""
|
||||
|
||||
VERSION = '1.5.5'
|
||||
from .constants import VERSION
|
||||
|
||||
from .pulp import *
|
||||
from .amply import *
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
This file contains the constant definitions for PuLP
|
||||
Note that hopefully these will be changed into something more pythonic
|
||||
"""
|
||||
|
||||
VERSION = '1.5.5'
|
||||
EPS = 1e-7
|
||||
|
||||
# variable categories
|
||||
|
||||
Reference in New Issue
Block a user