* cmake: build python extension * Python: remove obsolete clear_screen_start * Debian: python3-cffi, not python-cffi * Debian: add dep on python3-setuptools * Python: build extension module from CMake #294 * Python: install python wrappers #294 * drone: disable focal for nowpull/300/head
parent
eae259f3bc
commit
16dfe05a93
@ -0,0 +1,10 @@
|
||||
[nosetests]
|
||||
verbosity=1
|
||||
detailed-errors=1
|
||||
with-coverage=1
|
||||
cover-package=nose
|
||||
debug=nose.loader
|
||||
pdb=1
|
||||
pdb-failures=1
|
||||
[build_ext]
|
||||
library_dirs = '${CMAKE_CURRENT_BINARY_DIR}'
|
@ -0,0 +1,15 @@
|
||||
from setuptools import setup, find_packages
|
||||
import os
|
||||
|
||||
def read(fname):
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
if __name__ == '__main__':
|
||||
setup(name='notcurses',
|
||||
version='${PROJECT_VERSION}',
|
||||
package_dir={ '': '${CMAKE_CURRENT_SOURCE_DIR}/python/src/notcurses' },
|
||||
packages=find_packages('${CMAKE_CURRENT_SOURCE_DIR}/python/src/notcurses'),
|
||||
cffi_modules=['${CMAKE_CURRENT_SOURCE_DIR}/python/src/notcurses/build_notcurses.py:ffibuild'],
|
||||
py_modules=["notcurses"],
|
||||
include_dirs=['${CMAKE_CURRENT_SOURCE_DIR}/include']
|
||||
)
|
Loading…
Reference in New Issue