Pycharm: setup.py

Answered

Hi,

I've got two questions with regards to the "Create setup.py" task from within PyCharm:

  1. I'm using some modules like Sphinx that are relevant to developers only. I'd like to exclude them from setup.py (developers can grab everything from GIT). What is the best way to deal with this situation? Shall I create two virtualenv environments, one with the development-related modules and another without and activate the latter before running the "Create setup.py" task?
  2. PyCharm refers all my imported modules with the packages directive. I'd have expected that install_requires had been used instead. Is there a reason for that behaviour?

Best regards,
Dominik

0
1 comment

Hi Dominik,

Thank you for contacting PyCharm support.

1. We would recommend to use Pipenv, because it already has a `pipFile` which allows you to determine packages. 

Maybe I am missing something, so please correct me if yes.

2. Do you mean packages in setup.py which you import in another file?

Kind regards,

Sergey

https://www.jetbrains.com

The Drive to Develop

0

Please sign in to leave a comment.