Final changes for python 3 compatibility

This commit is contained in:
Stuart Mitchell
2014-02-23 19:10:44 +13:00
parent 23f15c644a
commit 2738ccb32c
5 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,6 @@ include INSTALL
include LICENSE
include MANIFEST.in
include README
include VERSION
include HISTORY
include setup.py
include ez_setup.py

View File

@@ -1 +0,0 @@
1.5.5

View File

@@ -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

View File

@@ -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 *

View File

@@ -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