Artificer has that baked directly into the class.
At level 1, they get item creation, it allows them to basically pretend they have any spell for crafting purposes, and then you just need to take the crafting feats, like brew potion.
They also, at 4th level, get "craft homunculus" which gives you the ability to craft constructs. The rest is pretty much just roleplay.
here is a guide to building artificers, it may help you refine down exactly how you want to build your character, and gives recommendations on the homunculi to build. It also lists a couple of good PrCs, like alchemist savant, and what books they're in.