Skip to content

Commit

Permalink
Final changes for python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Mitchell committed Feb 23, 2014
1 parent 23f15c6 commit 2738ccb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ include INSTALL
include LICENSE
include MANIFEST.in
include README
include VERSION
include HISTORY
include setup.py
include ez_setup.py
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

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:
Expand All @@ -21,7 +24,7 @@
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
Expand Down
3 changes: 1 addition & 2 deletions src/pulp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
Copyright 2007- Stuart Mitchell ([email protected])
"""

VERSION = '1.5.5'
from .constants import VERSION

from .pulp import *
from .amply import *
Expand Down
2 changes: 1 addition & 1 deletion src/pulp/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2738ccb

Please sign in to comment.