Skip to content

Commit

Permalink
Package and install j2 templates
Browse files Browse the repository at this point in the history
This fixes Jinja2 templates packaging and installation bug.
  • Loading branch information
etingof committed Jun 12, 2019
1 parent 379a0a3 commit 6760244
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,23 @@ def howto_install_setuptools():
'platforms': ['any'],
'classifiers': [x for x in classifiers.split('\n') if x],
'license': 'BSD',
'packages': ['pysmi',
'pysmi.reader',
'pysmi.searcher',
'pysmi.lexer',
'pysmi.parser',
'pysmi.codegen',
'pysmi.borrower',
'pysmi.writer'],
'packages': [
'pysmi',
'pysmi.reader',
'pysmi.searcher',
'pysmi.lexer',
'pysmi.parser',
'pysmi.codegen',
'pysmi.borrower',
'pysmi.writer'
],
'package_data': {
'pysmi.codegen': [
'templates/*.j2',
'templates/*/*.j2',
'templates/*/*/*.j2'
],
},
'scripts': [os.path.join('scripts', 'mibdump.py'),
os.path.join('scripts', 'mibcopy.py')]
})
Expand Down

0 comments on commit 6760244

Please sign in to comment.