If you have your manuscript printed into the form of a book, even if it sits in your basement for a thousand years, it's still going to be considered published.
Alas, I can't find myself in agreement with this. "Publish" means "make public." Whether you bind your book or not, if you leave it in your basement it isn't published. It's only when you start selling it (or giving it away in the street) that it's published.
If I were to print out a dozen copies of my next book, bind them, and give them to my beta readers for comment, it still isn't published any more than if I'd give my beta readers a text file. If, however, I print out that same dozen copies, bind them, and sell them at a flea market, it is published.
"Public" is what it's all about.
If only a dozen copies sell, most publishers would consider that basically unpublished. They might offer lowball advances, but if it's a dandy book they'd still offer on it.
Even if a book sells thousands of copies, if it's a dandy book it'll still get published. If this weren't true
Huckleberry Finn wouldn't be in print right now.
The thing you want to avoid is this: You don't want to have your book branded a proven failure. You won't resell it if the publisher thinks that it's already sold as many copies as it's ever going to sell.
The sales numbers of most self-published books fall into the proven failure range.
And, as a reprint, you'll be limited to reprint houses and reprint-level advances.