Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Your setup.py is setup to look for the API in src, if you want it to look in scripts then change it to look like this:

#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['my_pkg_A'],
    package_dir={'': 'scripts'}
)

setup(**d)

Your setup.py is setup to look for the API in src, if you want it to look in scripts then change it to look like this:

#!/usr/bin/env python

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
    packages=['my_pkg_A'],
    package_dir={'': 'scripts'}
)

setup(**d)

It would be best practice, however, to separate your API and scripts into different folders and the src folder is a good place to place your API files.