You need to inform the linker which modules to link against. In the provided setup.py this can be done by adding
args['libraries']=['p3framework', 'panda', 'pandafx', 'pandaexpress', 'p3dtoolconfig', 'p3dtool', 'p3pystub', 'p3direct']
before the compilation happens.