Source

stackoverflow / 8628495 / setup.py

from distutils.core import setup

setup(
	name='myproject',
	version='1.0',
	scripts=['scripts/run-my-code.py'],
	data_files = [
		('data',
			['myproject/data/file1.dat']
		),
	],
	# modules can be found in myproject
	package_dir = {'': 'myproject'},
	py_modules=['mycode'],
)