Would it be possible to abstract about parts of the compile routine
from python.py so that I could have a setup.py that does like:
from setuptools import setup
from jcc import jcc_extension
my_extension = jcc_extension(
name='py_lex_java'
clases=['ca.ualberta.cs.ScannerWrapper'],
includes=['target/lex-java-1.0-SNAPSHOT-jar-with-dependencies.jar'],
)
setup(
name='py_lex_java',
version="1.8.1",
description='Call the Java Compiler\'s lexer from Python.',
long_description=open('README.txt').read(),
author='Joshua Campbell',
author_email='***@orezpraw.com',
url='https://github.com/naturalness/py-lex-java',
license='GPLv3+',
packages=['py_lex_java'],
zip_safe=False,
ext_modules=[my_extension.ext_module],
'package_dir': {'py_lex_java': my_extension.package_dir},
'package_data': {'py_lex_java': my_extension.package_data},
)
Post by Joshua CampbellI thought of it but I have other, swig-based modules that are also
built by my setup.py...
So I gave up on that but then how do I specify the things that aren't
package name or version to setup(), such as description,
long_description, author, author_email, url, license?
Post by Andi VajdaPost by Joshua CampbellDoes anyone know how to do this? I don't want to install the java
stuff as its own thing like python -m jcc --install... I just want to
include it as a submodule of a package I already have.
I think you add python files on the jcc command line (there should be exhaustive help in its __main__.py file). You might then be able to build your package and your java stuff as one jcc thing.
Andi..
Post by Joshua Campbell--
Joshua Charles Campbell
Ph.D. Student and Research Assistant
Department of Computing Science
University of Alberta
--
Joshua Charles Campbell
Ph.D. Student and Research Assistant
Department of Computing Science
University of Alberta
--
Joshua Charles Campbell
Ph.D. Student and Research Assistant
Department of Computing Science
University of Alberta
***@ualberta.ca