boost_python = "boost_python-%s.%s" % (pyver[0], pyver[1]) if find_file("lib" + boost_python, library_dirs): return boost_python if pyver >= (3, ): boost_python = "boost_python-py%s%s" % (pyver[0], pyver[1]) if find_file("lib" + boost_python, library_dirs): return boost_python boost_python = "boost_python%s" % pyver[0] if find_file("lib" + boost_python, library_dirs): return boost_python return "boost_python" # write version to version.py open("ev3dev/version.py", "w").write("__version__='%s (%s)'\n" % (git_version(), spec_version)) #---------------------------------------------------------------------------- setup( name='python-ev3dev', version=git_version(), description='Python language bindings for ev3dev', author='Denis Demidov', author_email='*****@*****.**', license='GPLv2', url='https://github.com/ddemidov/evdev-lang-python', include_package_data=True, packages=['ev3dev'], zip_safe=False, ext_modules=[
#source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = 'python-ev3dev' copyright = '2015, Ralph Hempel et al' author = 'Ralph Hempel et al' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = git_version() # The full version, including alpha/beta/rc tags. release = git_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y'
opts.append('-DVERSION_INFO="%s"' % self.distribution.get_version()) opts.append(cpp_flag(self.compiler)) if has_flag(self.compiler, '-fvisibility=hidden'): opts.append('-fvisibility=hidden') elif ct == 'msvc': opts.append('/DVERSION_INFO=\\"%s\\"' % self.distribution.get_version()) for ext in self.extensions: ext.extra_compile_args = opts build_ext.build_extensions(self) setup( name='pyamgcl', version=git_version(), description= 'Solution of large sparse linear systems with Algebraic Multigrid Method', author='Denis Demidov', author_email='*****@*****.**', license='MIT', url='https://github.com/ddemidov/amgcl', include_package_data=True, zip_safe=False, packages=['pyamgcl'], ext_modules=[ Extension('pyamgcl.pyamgcl_ext', ['pyamgcl/pyamgcl.cpp'], include_dirs=[ '.', get_pybind_include(), get_pybind_include(user=True)
#source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = 'VexCL' copyright = '2012-2018, Denis Demidov <*****@*****.**>' author = 'Denis Demidov' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = git_version() # The full version, including alpha/beta/rc tags. release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y'
def make_setup(): src = ''.join(file('setup-template.py').readlines()) with file('setup.py', 'w') as fp: fp.write(src % { 'version': git_version() })
return boost_python if pyver >= (3, ): boost_python = "boost_python-py%s%s" % (pyver[0], pyver[1]) if find_file("lib" + boost_python, library_dirs): return boost_python boost_python = "boost_python%s" % pyver[0] if find_file("lib" + boost_python, library_dirs): return boost_python return "boost_python" # write version to version.py open("ev3dev/version.py", "w").write("__version__='%s (%s)'\n" % (git_version(), spec_version)) #---------------------------------------------------------------------------- compile_args = ['-O2', '-std=c++11'] if platform.machine() == 'armv6l': compile_args.append('-DEV3DEV_RPI') setup(name='python-ev3dev', version=git_version(), description='Python language bindings for ev3dev', author='Denis Demidov', author_email='*****@*****.**', license='GPLv2', url='https://github.com/ddemidov/evdev-lang-python', include_package_data=True,