Commits

Flo Ledermann committed feb60a3

wem ust find a way to use package_resources in the future for cross-platform compatibility, commented out for now

Comments (0)

Files changed (2)

     license='GPL',
     package_dir = {'': 'src/python'},
     packages=['flyingpython'],
-    entry_points = {
-        'console_scripts': [
-            'html2pdf = flyingpython:html_to_pdf',
-        ],
-    },
+    #include_package_data=True,
+#    entry_points = {
+#        'console_scripts': [
+#            'html2pdf = flyingpython:html_to_pdf',
+#        ],
+#    },
+#    package_data={
+#        'flyingpython': ['*.jar']
+#    },
     data_files=[('bin/pdfgen',['scripts/pdfgen.jar'])],
     classifiers=[
         'Development Status :: 3 - Alpha',
         'Programming Language :: Python',
         'Framework :: Django',
     ],
+    # we need filesystem access to pdfgen.jar
+    zip_safe=False,
     # Make setuptools include all data files under version control,
     # svn and CVS by default
     # include_package_data=True,

src/python/flyingpython/__init__.py

 import sys
 import os
 
+#from pkg_resources import resource_filename
+
 
 def get_jar_path():
     """Return the full path to the PDFGen Java archive."""