py2app not picking up additional .py files
Frank Illenberger <[email protected]> Sun, 13 Jan 2013 01:49:55 +0100
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
I am developing a plugin with py2app using the following setup.py file:
from setuptools import setup
plist = {
'NSPrincipalClass':'MyClass',
'CFBundleName':'MyPlugin',
'CFBundleIdentifier':'net.test',
'CFBundleGetInfoString':'MyPlugin 0.1',
'CFBundleVersion':'0.1',
'CFBundleShortVersionString':'0.1',
}
setup(
name = "MyPlugin",
plugin = ["MyClass.py"],
data_files=[],
setup_requires=["py2app"],
options=dict(py2app=dict(extension='.myPlugin', plist=plist)),
)
The MyClass.py file looks like this:
import objc
from Foundation import *
import MyClass2
class MyClass(NSObject):
def init(self):
self = super(MyClass, self).init()
print "I am a python object"
return self
The compiled bundle contains the MyClass.py file but not the other python file "MyClass2.py" that resides in the same source directory although I explictly import it.
Do I have to explicitly name all files in the setup.py?
Thanks for your help.
Cheers
Frank
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Pyobjc-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev