packaging

Python packaging of weakly dependent projects

五迷三道 提交于 2020-03-15 05:51:36
问题 I am trying to figure out a good way to package and deploy a number of python packages I created. Eventually, I would like to use some package repository for deployment or create some sort of setup script. The structure of my project is as follows: I have two subprojects A and B that both use tools from another self-created package C . The tools in C are for internal use only and not of bigger interest to a general audience. However, A and B shall be deployed. I want that users can install A

Python packaging of weakly dependent projects

旧巷老猫 提交于 2020-03-15 05:51:06
问题 I am trying to figure out a good way to package and deploy a number of python packages I created. Eventually, I would like to use some package repository for deployment or create some sort of setup script. The structure of my project is as follows: I have two subprojects A and B that both use tools from another self-created package C . The tools in C are for internal use only and not of bigger interest to a general audience. However, A and B shall be deployed. I want that users can install A

Outlook VBA - How to Deliver VBA and UserForms?

拜拜、爱过 提交于 2020-01-16 08:08:13
问题 In Outlook 2010 I coded a VBA and also have 2 user forms with some code. How can I deliver the Module and the two forms as a package to my colleagues? So they can easily add the VBA to Outlook 2010 and I can send them updates of my VBA. 来源: https://stackoverflow.com/questions/59087790/outlook-vba-how-to-deliver-vba-and-userforms

Python Packaging multiple subpackages with different data directories

独自空忆成欢 提交于 2020-01-15 12:03:12
问题 I have a structure of the directory as such with foobar and alphabet data directories together with the code something.py : \mylibrary \packages \foobar foo.zip bar.zip \alphabet abc.zip xyz.zip something.py setup.py And the goal is such that users can pip install the module as such: pip install mylibrary[alphabet] And that'll only include the data from the packages/alphabet/* data and the python code. Similar behavior should be available for pip install mylibrary[foobar] . If the user

Python Packaging multiple subpackages with different data directories

别说谁变了你拦得住时间么 提交于 2020-01-15 12:02:52
问题 I have a structure of the directory as such with foobar and alphabet data directories together with the code something.py : \mylibrary \packages \foobar foo.zip bar.zip \alphabet abc.zip xyz.zip something.py setup.py And the goal is such that users can pip install the module as such: pip install mylibrary[alphabet] And that'll only include the data from the packages/alphabet/* data and the python code. Similar behavior should be available for pip install mylibrary[foobar] . If the user

Developing and using the same Python on the same computer

白昼怎懂夜的黑 提交于 2020-01-14 03:26:14
问题 I'm developing a Python utility module to help with file downloads, archives, etc. I have a project set up in a virtual environment along with my unit tests. When I want to use this module on the same computer (essentially as "Production"), I move the files to the mymodule directory in the ~/dev/modules/ mymodule I keep all 3rd-party modules under ~/dev/modules/ contrib . This contrib path is on my PYTHONPATH, but mymodule is NOT because I've noticed that if mymodule is on my PYTHONPATH, my

Android Glide library NoClassDefFoundError

不想你离开。 提交于 2020-01-13 19:45:30
问题 Am i using the Glide library wrongly? what could be the problem? protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ImageView iv = (ImageView) findViewById(R.id.imageView1); Glide.with(this).load(R.drawable.salads_caesar_salad).into(iv); } 回答1: If your code compiles fine it's highly likely you have the right dependencies on the compile classpath. If you use Android Studio/Gradle it's possible that ProGuard somehow

Packaging for Ubuntu - Web Application

大兔子大兔子 提交于 2020-01-13 11:29:12
问题 A web application has no make file unlike C++ or anything like that. However, it needs to be placed into specific directories...e.g /var/www. I'm new to linux packaging, so my question is, how do I package my app into a .deb such that when its being installed, it gets put into something like /etc/myprogram/bundles/myprogram-3.4? Mine in particular is a java app running on apache tomcat. I've managed to create a .deb file by reading painstakingly every word in http://www.debian.org/doc/manuals

Install multiple .service files with dh_systemd packaging

我怕爱的太早我们不能终老 提交于 2020-01-13 05:10:50
问题 I'm currently packaging a python app with dh_virtualenv, to deploy it on Ubuntu 16.04, daemonized with systemd. I use the dh_systemd plugin to automatically install the file my_app.service will install the .deb package, but I'd like to run another process in a different service that schedules tasks for my app, using celery. So, I created another service file, my_app.scheduler.service, but I don't know how to declare this file/app/service in my debian packaging rules, so that while installing

Java Swing ImageIcon, where to put images?

六月ゝ 毕业季﹏ 提交于 2020-01-09 11:07:46
问题 I'm following this tutorial for java swing games: http://zetcode.com/tutorials/javagamestutorial/movingsprites/ At this point: ImageIcon ii = new ImageIcon(this.getClass().getResource()); image = ii.getImage(); I just don't know what kind of path I have to write and where should I save my images (which directory). Would you help me please? Would you give an example? 回答1: In your src folder, create a folder called "images" or "files" then put the image in there. Then use this: ImageIcon(this