I am trying to create a python package, which then I want to install on my databricks cluster. I have tried different approaches, but they all end up with ModuleNotFoundError error. I want to create it out of this data_aggregation directory, which is marked as package, according to my pycharm. It's nested inside of my project, so I wonder if this could be an issue?
This is my setup.py file:
from setuptools import setup
setup(
name='dataaggpackage',
version='test',
packages=['data_aggregation'],
url='',
license='test',
author='czept',
author_email='test',
description='test'
)
However, trying to build a package(py -m build) using it, results in:

So then, I change my setup file to this, assuming that it would pick up the data_agreggation dir as a root.
from setuptools import setup
setup(
name='dataaggpackage',
version='test',
packages=[''],
url='',
license='test',
author='czept',
author_email='test',
description='test'
)
It builds correctly, I can install it on databricks cluster, but cannot import it.




