Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Dec 27, 2019
1 parent 6f41f8d commit 9454212
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from distutils.version import LooseVersion
from codecs import open
from setuptools.command.build_ext import build_ext
import io
import os
import os.path
import os
Expand All @@ -23,8 +24,20 @@
import multiprocessing
CPU_COUNT = multiprocessing.cpu_count()

pjoin = os.path.join
here = os.path.abspath(os.path.dirname(__file__))
PREFIX = sysconfig.get_config_vars()['prefix']
name = 'aat'


def get_version(file, name='__version__'):
path = os.path.realpath(file)
version_ns = {}
with io.open(path, encoding="utf8") as f:
exec(f.read(), {}, version_ns)
return version_ns[name]

version = get_version(pjoin(here, name, '_version.py'))

with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
Expand Down Expand Up @@ -102,8 +115,8 @@ def build_extension_cmake(self, ext):
print() # Add an empty line for cleaner output

setup(
name='aat',
version='0.0.2',
name=name,
version=version,
description='Algorithmic trading library',
long_description=long_description,
url='https://github.com/timkpaine/aat',
Expand Down

0 comments on commit 9454212

Please sign in to comment.