from distutils.core import setup
import sys
import os
import re

PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                          PACKAGENAME)
versionFile = os.path.join(packageDir, 'version.py')

# Obtain the package version

with open(versionFile, 'r') as f:
          s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ =  versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
      name=PACKAGENAME,
      version=__version__,
      description='simple repo to study OpSim output summaries',
      long_description=''' ''',
      # What code to include as packages
      packages=[PACKAGENAME],
      packagedir={PACKAGENAME: 'opsimsummary'},
      # What data to include as packages
      include_package_data=True,
      package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
      )

from distutils.core import setup
import sys
import os
import re

PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                          'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')

# Obtain the package version

with open(versionFile, 'r') as f:
          s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ =  versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
      name=PACKAGENAME,
      version=__version__,
      description='simple repo to study OpSim output summaries',
      long_description=''' ''',
      # What code to include as packages
      packages=[PACKAGENAME],
      packagedir={PACKAGENAME: 'opsimsummary'},
      # What data to include as packages
      include_package_data=True,
      package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
      )

Revert "Revert "Revert "Changed back due to problems, will fix later"""
Revert "Revert "Revert "Changed back due to problems, will fix later"""

This reverts commit 4b35247fe384d4b2b206fa7650398511a493253c.

  from distutils.core import setup
  import sys
  import os
  import re
  
  PACKAGENAME = 'OpSimSummary'
  packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
-                           PACKAGENAME)
+                           'opsimsummary')
  versionFile = os.path.join(packageDir, 'version.py')
  
  # Obtain the package version
  
  with open(versionFile, 'r') as f:
            s = f.read()
  # Look up the string value assigned to __version__ in version.py using regexp
  versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
  # Assign to __version__
  __version__ =  versionRegExp.findall(s)[0]
  print(__version__)
  setup(# package information
        name=PACKAGENAME,
        version=__version__,
        description='simple repo to study OpSim output summaries',
        long_description=''' ''',
        # What code to include as packages
        packages=[PACKAGENAME],
        packagedir={PACKAGENAME: 'opsimsummary'},
        # What data to include as packages
        include_package_data=True,
        package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
        )
  
Revert "Revert "Revert "Changed back due to problems, will fix later"""
## Code Before:
from distutils.core import setup
import sys
import os
import re

PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                          PACKAGENAME)
versionFile = os.path.join(packageDir, 'version.py')

# Obtain the package version

with open(versionFile, 'r') as f:
          s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ =  versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
      name=PACKAGENAME,
      version=__version__,
      description='simple repo to study OpSim output summaries',
      long_description=''' ''',
      # What code to include as packages
      packages=[PACKAGENAME],
      packagedir={PACKAGENAME: 'opsimsummary'},
      # What data to include as packages
      include_package_data=True,
      package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
      )

## Instruction:
Revert "Revert "Revert "Changed back due to problems, will fix later"""
## Code After:
from distutils.core import setup
import sys
import os
import re

PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                          'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')

# Obtain the package version

with open(versionFile, 'r') as f:
          s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ =  versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
      name=PACKAGENAME,
      version=__version__,
      description='simple repo to study OpSim output summaries',
      long_description=''' ''',
      # What code to include as packages
      packages=[PACKAGENAME],
      packagedir={PACKAGENAME: 'opsimsummary'},
      # What data to include as packages
      include_package_data=True,
      package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
      )
