Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a problem with packaging quickly. I have a project foo:

foo/
foo/bar/
foo_lib/
data/

When I run quickly package --extras && file-roller ../*deb I always miss /opt/extras.ubuntu.com/foo/foo/bar in the deb-file.

Any ideas?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

So I kind of solved it by now.

I've edited the setup.py in the project folder. I extended the setup on the last lines:

DistUtilsExtra.auto.setup(  
name='foo'  
version='0.1-public1',  
license='GPL-3',  
author='Alex',  
author_email='alex@foo.bar',  
description='This is foo',  
long_description='with a lot of bar',  
url='www.foo.bar',  
cmdclass={'install': InstallAndUpdateDataDirectory}  
)

by appending three parameters:

DistUtilsExtra.auto.setup(  
name='foo'  
version='0.1-public1',  
license='GPL-3',  
author='Alex',  
author_email='alex@foo.bar',  
description='This is foo',  
long_description='with a lot of bar',  
url='www.foo.bar',  
cmdclass={'install': InstallAndUpdateDataDirectory},  
packages=['foo', 'foo_lib', 'foo/bar'],  
package_data={  
    'foo': ['*.py'],  
    'foo_lib': ['*.py'],  
    'foo/bar': ['*.py']  
    },  
package_dir={  
    'foo': 'foo',  
    'foo_lib': 'foo_lib',  
    'foo/bar': 'foo/bar'  
    },  
)

I'm not sure, if this is the way it should be solved, but at least it works for me :-)

I hope I can help someone else out there, too...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.