title: download nltk corpus as cmdclass in setup.py files not working
body: <p>There are some parts of the nltk corpus that I'd like to add to the setup.py file. I followed the response <a href="https://stackoverflow.com/a/29628540/15979770">here</a> by setting up a custom <code>cmdclass</code>. My setup file looks like this.</p>
  <pre><code>
  from setuptools import setup
  from setuptools.command.install import install as _install
  
  
  class DownloadNLTK(install):
      def run(self):
          self.do_egg_install()
          import nltk
          nltk.download('wordnet')
          nltk.download('punkt')
          nltk.download('stopwords')
          nltk.download('vader_lexicon')
  
  setup(
      install_requires=requirements,
      python_requires='&gt;=3.7',
      cmdclass={'download_nltk': DownloadNLTK()}
  )
  
  </code></pre>
  <p>However, running it, I get this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;setup.py&quot;, line 15, in &lt;module&gt;
      'install': DownloadNLTK()}
  TypeError: __init__() missing 1 required positional argument: 'dist'
  </code></pre>
  <p>I tried to better understand what's needed, but I have to say that the documentation I found <a href="https://setuptools.readthedocs.io/en/latest/deprecated/distutils/apiref.html?highlight=cmd#distutils.cmd.Command" rel="nofollow noreferrer">here</a> on <code>dist</code> is not very clear to me. Can someone help with a solution approach? Thanks!</p>