Skip to content

Commit

Permalink
Sanitize package configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
astoeckel committed Jun 2, 2019
1 parent 13e42ea commit 5065bfd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
11 changes: 7 additions & 4 deletions nengo_bio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ def _warn_omp_num_threads():
var = "OMP_NUM_THREADS"
if ((not var in os.environ) or (os.environ[var] != "1")):
warnings.warn(
"\n𝗡𝗘𝗡𝗚𝗢𝗕𝗜𝗢 𝗪𝗔𝗥𝗡𝗜𝗡𝗚\n"
"The environment variable OMP_NUM_THREADS is not set to \"1\".\n"
"This will results in reduced performance when solving for\n"
"neuron weights.\n",
"The environment variable OMP_NUM_THREADS is not set to \"1\". "
"This will result in reduced performance when solving for "
"neuron weights.",
RuntimeWarning)
_warn_omp_num_threads()

# Set the package name
name = "nengo_bio"

# Expose commonly used objects
from nengo_bio.connection import Connection
from nengo_bio.ensemble import Ensemble
from nengo_bio.common import Excitatory, Inhibitory
Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,21 @@

from setuptools import setup, find_packages

with open("README.md", "r") as fh:
long_description = fh.read()

setup(
name='nengo_bio',
packages=[
'nengo_bio'
],
version='1.0',
version='0.1',
author='Andreas Stöckel',
author_email='[email protected]',
description='Dendritic Computation Primitives for Nengo',
url='https://github.com/astoeckel/nengo_bio',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/astoeckel/nengo-bio',
license='GPLv3',
classifiers=[
'Development Status :: 3 - Alpha',
Expand Down

0 comments on commit 5065bfd

Please sign in to comment.