I'm trying to create an empty directory when distributing my python package on Ubuntu machines.
What I did so far is to add the following line to setup object under setup.py:
data_files=[('opt/my_project', [])
Which is not working. I thought it's because there are no files in it so I tried this:
data_files=[('opt/my_project', ['empty.txt'])
Unfortunately nothing happens in opt directory during installation. Also - there are no error messages.
What is the proper way to create an empty directory?
You are missing a "/" at the beginning of your path...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With