Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Add module folder to path
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Apr 4, 2020
1 parent dd22480 commit 065d1da
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include libsemigroups_cppyy/include/python_element.h
6 changes: 5 additions & 1 deletion libsemigroups_cppyy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
import libsemigroups_cppyy.detail
from libsemigroups_cppyy.adapters import *

cppyy.load_library("libsemigroups")
try:
cppyy.load_library("libsemigroups.1")
except RuntimeError as e:
cppyy.load_library("libsemigroups")

cppyy.cppdef("#define FMT_HEADER_ONLY")
cppyy.cppdef("#define HPCOMBI_CONSTEXPR_FUN_ARGS")
Expand All @@ -47,6 +50,7 @@
cppyy.include("libsemigroups/schreier-sims.hpp")
cppyy.include("libsemigroups/report.hpp")

cppyy.add_include_path(__file__[:__file__.rfind(os.path.sep)])
cppyy.include("include/python_element.h")

from libsemigroups_cppyy.action import LeftAction, RightAction
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
from setuptools import find_packages, setup

setup(name='libsemigroups_cppyy',
version='0.0.0',
version='0.0.1',
description='A minimal cppyy wrapper for the libsemigroups C++ library',
url='http://github.com/libsemigroups/libsemigroups_cppyy',
author='James D. Mitchell, Nicolas Thiéry',
author_email='[email protected], [email protected]',
license='GPL3',
install_requires=['cppyy','networkx'],
packages=find_packages(exclude=['tests']),
tests_require=['nose'],
zip_safe=False)
tests_require=['tox'],
zip_safe=False,
include_package_data=True)

0 comments on commit 065d1da

Please sign in to comment.