Skip to content

Commit 49568b4

Browse files
committed
renamed misc_util.cpp -> nodes.cpp and created _extensions.py file
1 parent 46df219 commit 49568b4

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

pydatastructs/utils/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from . import misc_util
44
from . import testing_util
5+
from . import _extensions
56
from .misc_util import (
67
TreeNode,
78
MAryTreeNode,

pydatastructs/utils/_extensions.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from setuptools import Extension
2+
3+
project = 'pydatastructs'
4+
5+
module = 'utils'
6+
7+
backend = '_backend'
8+
9+
cpp = 'cpp'
10+
11+
nodes = '.'.join([project, module, backend, cpp, '_nodes'])
12+
nodes_sources = ['/'.join([project, module, backend, cpp,
13+
'nodes.cpp'])]
14+
15+
extensions = [
16+
Extension(nodes, sources=nodes_sources)
17+
]

0 commit comments

Comments
 (0)